diff --git a/connector/docker.go b/connector/docker.go index 399f0e9..86a835b 100644 --- a/connector/docker.go +++ b/connector/docker.go @@ -6,9 +6,9 @@ import ( "sync" "github.com/bcicen/ctop/connector/collector" + "github.com/bcicen/ctop/connector/manager" "github.com/bcicen/ctop/container" api "github.com/fsouza/go-dockerclient" - "github.com/bcicen/ctop/connector/manager" ) type Docker struct { diff --git a/connector/manager/docker.go b/connector/manager/docker.go index c2943ad..2605e5d 100644 --- a/connector/manager/docker.go +++ b/connector/manager/docker.go @@ -1,19 +1,19 @@ package manager import ( - api "github.com/fsouza/go-dockerclient" "fmt" + api "github.com/fsouza/go-dockerclient" ) type Docker struct { - id string - client *api.Client + id string + client *api.Client } func NewDocker(client *api.Client, id string) *Docker { return &Docker{ - id: id, - client: client, + id: id, + client: client, } } diff --git a/connector/manager/mock.go b/connector/manager/mock.go index bd7b182..d3b86f3 100644 --- a/connector/manager/mock.go +++ b/connector/manager/mock.go @@ -1,6 +1,6 @@ package manager -type Mock struct {} +type Mock struct{} func NewMock() *Mock { return &Mock{} diff --git a/connector/mock.go b/connector/mock.go index 131ce71..a842754 100644 --- a/connector/mock.go +++ b/connector/mock.go @@ -8,10 +8,10 @@ import ( "time" "github.com/bcicen/ctop/connector/collector" + "github.com/bcicen/ctop/connector/manager" "github.com/bcicen/ctop/container" "github.com/jgautheron/codename-generator" "github.com/nu7hatch/gouuid" - "github.com/bcicen/ctop/connector/manager" ) type Mock struct { diff --git a/container/main.go b/container/main.go index ad02013..62fb9e2 100644 --- a/container/main.go +++ b/container/main.go @@ -2,11 +2,11 @@ package container import ( "github.com/bcicen/ctop/connector/collector" + "github.com/bcicen/ctop/connector/manager" "github.com/bcicen/ctop/cwidgets" "github.com/bcicen/ctop/cwidgets/compact" "github.com/bcicen/ctop/logging" "github.com/bcicen/ctop/models" - "github.com/bcicen/ctop/connector/manager" ) var (