Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection interface { Get(string) ([]byte, *zk.Stat, error) Children(string) ([]string, *zk.Stat, error) }
Connection interface to allow easy mocking of a Zookeeper connection
func NewConnection ¶
func NewConnection(kafkaArgs *args.ParsedArguments) (Connection, error)
NewConnection creates a new Connection with the given arguments. If not hosts are specified then a nil Connection and error will be returned
Waiting on issue https://github.com/samuel/go-zookeeper/issues/108 so we can change this function and allow us to mock out the zk.Connect function
type MockConnection ¶
MockConnection implements Connection to facilitate testing.
Click to show internal directories.
Click to hide internal directories.