Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConnectionString ¶
ParseConnectionString parses a zookeeper connection string in the form of host1:2181,host2:2181/chroot and returns the list of servers, and the chroot.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a simple wrapper for zk.
func NewFromConnectionString ¶
func NewFromConnectionString(connectionString string, dialTimeout, sessionTimeout time.Duration) (*Client, error)
NewFromConnectionString creates a new connection instance based on a zookeeer connection string that can include a chroot.
func NewWithConnection ¶
NewWithConnection creates a Client with an existing zookeeper connection.
func (*Client) Brokers ¶
Brokers returns a map of all the brokers that make part of the Kafka cluster that is registered in Zookeeper.
func (*Client) Partitions ¶
Partitions returns partitions of specific topic.
Click to show internal directories.
Click to hide internal directories.