Documentation ¶
Overview ¶
zk配置,需要外部进行初始化
读取并监听zk节点中数据
读取并监听zk节点子节点中数据
Index ¶
- func AddZkNodeParser(path string, parser NodeParser)
- func AddZkParser(path string, parser Parser)
- func GetZkEnvKey(env string) (string, bool)
- func GetZkHostPorts(key string) []string
- func GetZkServers(key string) ([]string, bool)
- func LoadZkDatasW(servers []string, recvTimeout time.Duration)
- func LoadZkNodesW(servers []string, recvTimeout time.Duration)
- func SetZkEnvKey(env, key string)
- func SetZkServers(key string, servers []string)
- type IZkStat
- type NodeParser
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddZkNodeParser ¶
func AddZkNodeParser(path string, parser NodeParser)
func AddZkParser ¶
func GetZkEnvKey ¶
func GetZkHostPorts ¶
func GetZkServers ¶
func LoadZkDatasW ¶
func LoadZkNodesW ¶
func SetZkEnvKey ¶
func SetZkEnvKey(env, key string)
func SetZkServers ¶
Types ¶
type NodeParser ¶
type NodeParser interface { Parser // 解析并保存数据 ResetData() // 清理数据 }
//////////////////////////////////////////////////////////////////////////////
Click to show internal directories.
Click to hide internal directories.