Documentation ¶
Index ¶
- Constants
- Variables
- type CallBack
- type Impl
- type ZkClient
- func (z *ZkClient) AddChildrenWatch(path string, call CallBack)
- func (z *ZkClient) AddDataWatch(path string, call CallBack)
- func (z *ZkClient) Close()
- func (z *ZkClient) CreateNode(path string, data string) error
- func (z *ZkClient) GetChildNodes(path string) ([]string, error)
- func (z *ZkClient) GetNodeData(path string) (string, error)
- func (z *ZkClient) InitServiceConfig(path string, config map[string]string)
- func (z *ZkClient) SetNodeData(path string, data string) error
Constants ¶
View Source
const ( EventNodeCreated EventNodeDeleted EventNodeDataChanged EventNodeChildrenChanged )
Variables ¶
View Source
var (
Reactor = new(Impl)
)
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
CallBack
}
func (Impl) OnChildNodeChange ¶
func (Impl) OnDataChange ¶
type ZkClient ¶
type ZkClient struct {
// contains filtered or unexported fields
}
func GetInstanceClient ¶
func (*ZkClient) AddChildrenWatch ¶
func (*ZkClient) AddDataWatch ¶
Click to show internal directories.
Click to hide internal directories.