Documentation ¶
Index ¶
- type BrokerInfo
- type BrokerList
- type Node
- func (node Node) Child(name string) (Node, error)
- func (node Node) FullPath() string
- func (node Node) Get(setWatch bool) NodeResult
- func (node Node) GetChildren(setWatch bool) NodeResult
- func (node Node) Name() string
- func (node Node) NumberName() (int64, bool)
- func (node Node) Parent() (Node, error)
- func (node Node) Path() string
- func (node Node) Root() bool
- func (node *Node) Sequence() (int64, bool)
- type NodeResult
- type RequestType
- type ZooHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerInfo ¶
type BrokerInfo struct { Id int `xml:"-"` JmxPort int64 `xml:"jmx_port"` Host string `xml:"host"` Version int `xml:"version"` Port int `xml:"port"` }
func (BrokerInfo) Addr ¶
func (bi BrokerInfo) Addr() string
type BrokerList ¶
type BrokerList []BrokerInfo
func (BrokerList) Strings ¶
func (bl BrokerList) Strings() []string
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (Node) Get ¶
func (node Node) Get(setWatch bool) NodeResult
func (Node) GetChildren ¶
func (node Node) GetChildren(setWatch bool) NodeResult
func (Node) NumberName ¶
type NodeResult ¶
type NodeResult struct { Node Op string Err error Stat *zk.Stat Watch <-chan zk.Event Data []byte Children []Node ChildMap map[string]Node }
func (NodeResult) Error ¶
func (nr NodeResult) Error() string
func (NodeResult) Json ¶
func (nr NodeResult) Json(obj interface{}) error
type RequestType ¶
type RequestType byte
type ZooHandler ¶
type ZooHandler struct {
// contains filtered or unexported fields
}
func (*ZooHandler) Close ¶
func (zh *ZooHandler) Close()
func (*ZooHandler) GetKafkaBrokers ¶
func (zh *ZooHandler) GetKafkaBrokers() (BrokerList, error)
Click to show internal directories.
Click to hide internal directories.