From 9b4b399df0cbf83393b664edd2f25d366de582bb Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 5 Oct 2023 21:40:34 +0200 Subject: [PATCH] Refactor import, edit go module with github.com --- builder/builder.go | 8 ++++---- builder/director.go | 4 ++-- go.mod | 2 +- integration_test/integration_test.go | 6 +++--- main.go | 10 +++++----- protocols/protocol_manager.go | 4 ++-- protocols/strategies/http.go | 4 ++-- protocols/strategies/ssh.go | 6 +++--- protocols/strategies/tcp.go | 4 ++-- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/builder/builder.go b/builder/builder.go index 459ea2b..5bcfd44 100644 --- a/builder/builder.go +++ b/builder/builder.go @@ -1,12 +1,12 @@ package builder import ( - "beelzebub/parser" - "beelzebub/protocols" - "beelzebub/protocols/strategies" - "beelzebub/tracer" "errors" "fmt" + "github.com/mariocandela/beelzebub/parser" + "github.com/mariocandela/beelzebub/protocols" + "github.com/mariocandela/beelzebub/protocols/strategies" + "github.com/mariocandela/beelzebub/tracer" "io" "net/http" "os" diff --git a/builder/director.go b/builder/director.go index f2a521b..54b4035 100644 --- a/builder/director.go +++ b/builder/director.go @@ -1,10 +1,10 @@ package builder import ( - "beelzebub/parser" - "beelzebub/tracer" "context" "encoding/json" + "github.com/mariocandela/beelzebub/parser" + "github.com/mariocandela/beelzebub/tracer" amqp "github.com/rabbitmq/amqp091-go" log "github.com/sirupsen/logrus" diff --git a/go.mod b/go.mod index 2645818..d95338a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module beelzebub +module github.com/mariocandela/beelzebub go 1.20 diff --git a/integration_test/integration_test.go b/integration_test/integration_test.go index 47fdedd..3a8813b 100644 --- a/integration_test/integration_test.go +++ b/integration_test/integration_test.go @@ -1,10 +1,10 @@ package integration import ( - "beelzebub/builder" - "beelzebub/parser" - "beelzebub/tracer" "encoding/json" + "github.com/mariocandela/beelzebub/builder" + "github.com/mariocandela/beelzebub/parser" + "github.com/mariocandela/beelzebub/tracer" "net" "net/http" "os" diff --git a/main.go b/main.go index e477201..e39a9c2 100644 --- a/main.go +++ b/main.go @@ -1,19 +1,19 @@ package main import ( - "beelzebub/builder" - "beelzebub/parser" "flag" + "github.com/mariocandela/beelzebub/builder" + "github.com/mariocandela/beelzebub/parser" log "github.com/sirupsen/logrus" ) func main() { var ( - quit = make(chan struct{}) - configurationsCorePath string + quit = make(chan struct{}) + configurationsCorePath string configurationsServicesDirectory string - ) + ) flag.StringVar(&configurationsCorePath, "confCore", "./configurations/beelzebub.yaml", "Provide the path of configurations core") flag.StringVar(&configurationsServicesDirectory, "confServices", "./configurations/services/", "Directory config services") diff --git a/protocols/protocol_manager.go b/protocols/protocol_manager.go index b607694..8d97b5b 100644 --- a/protocols/protocol_manager.go +++ b/protocols/protocol_manager.go @@ -1,8 +1,8 @@ package protocols import ( - "beelzebub/parser" - "beelzebub/tracer" + "github.com/mariocandela/beelzebub/parser" + "github.com/mariocandela/beelzebub/tracer" ) type ServiceStrategy interface { diff --git a/protocols/strategies/http.go b/protocols/strategies/http.go index 63b9262..86198a4 100644 --- a/protocols/strategies/http.go +++ b/protocols/strategies/http.go @@ -1,9 +1,9 @@ package strategies import ( - "beelzebub/parser" - "beelzebub/tracer" "fmt" + "github.com/mariocandela/beelzebub/parser" + "github.com/mariocandela/beelzebub/tracer" "io" "net/http" "regexp" diff --git a/protocols/strategies/ssh.go b/protocols/strategies/ssh.go index 494d0c0..0ad52cb 100644 --- a/protocols/strategies/ssh.go +++ b/protocols/strategies/ssh.go @@ -1,10 +1,10 @@ package strategies import ( - "beelzebub/parser" - "beelzebub/plugins" - "beelzebub/tracer" "fmt" + "github.com/mariocandela/beelzebub/parser" + "github.com/mariocandela/beelzebub/plugins" + "github.com/mariocandela/beelzebub/tracer" "regexp" "strings" "time" diff --git a/protocols/strategies/tcp.go b/protocols/strategies/tcp.go index ade0568..93305bd 100644 --- a/protocols/strategies/tcp.go +++ b/protocols/strategies/tcp.go @@ -1,9 +1,9 @@ package strategies import ( - "beelzebub/parser" - "beelzebub/tracer" "fmt" + "github.com/mariocandela/beelzebub/parser" + "github.com/mariocandela/beelzebub/tracer" "net" "time"