refactor enabled connectors

This commit is contained in:
Bradley Cicenas
2018-01-29 12:47:10 +00:00
parent 01a305d326
commit ac1ce18143
6 changed files with 11 additions and 17 deletions

View File

@@ -14,11 +14,13 @@ import (
"github.com/nu7hatch/gouuid"
)
func init() { enabled["mock"] = NewMock }
type Mock struct {
containers container.Containers
}
func NewMock() *Mock {
func NewMock() Connector {
cs := &Mock{}
go cs.Init()
go cs.Loop()