zookeeper

package
v1.0.1-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL