Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RegistryZkClient zk client name RegistryZkClient = "zk registry" MaxFailTimes = 2 ConnDelay = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZKRegistry ¶
type ZKRegistry struct { *baseRegistry.BaseRegistry // contains filtered or unexported fields }
func (*ZKRegistry) DoSubscribe ¶
func (r *ZKRegistry) DoSubscribe() error
DoSubscribe is the implementation of subscription on the target registry.
func (*ZKRegistry) DoUnsubscribe ¶
func (r *ZKRegistry) DoUnsubscribe() error
DoUnsubscribe stops monitoring the target registry.
func (*ZKRegistry) GetClient ¶
func (r *ZKRegistry) GetClient() *zk.ZooKeeperClient
Click to show internal directories.
Click to hide internal directories.