zookeeper

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 23 Imported by: 11 modules, 137 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

nolint

type Options

type Options struct {
	// contains filtered or unexported fields
}

nolint

type RegistryConfigurationListener

type RegistryConfigurationListener struct {
	// contains filtered or unexported fields
}

RegistryConfigurationListener represent the processor of zookeeper watcher

func NewRegistryConfigurationListener

func NewRegistryConfigurationListener(client *gxzookeeper.ZookeeperClient, reg *zkRegistry, conf *common.URL) *RegistryConfigurationListener

NewRegistryConfigurationListener for listening the event of zk.

func (*RegistryConfigurationListener) Close

func (l *RegistryConfigurationListener) Close()

Close RegistryConfigurationListener only once

func (*RegistryConfigurationListener) Next

Next will observe the registry state and events chan

func (*RegistryConfigurationListener) Process

Process submit the ConfigChangeEvent to the event chan to notify all observer

type RegistryDataListener

type RegistryDataListener struct {
	// contains filtered or unexported fields
}

RegistryDataListener contains all URL information subscribed by zookeeper registry

func NewRegistryDataListener

func NewRegistryDataListener() *RegistryDataListener

NewRegistryDataListener constructs a new RegistryDataListener

func (*RegistryDataListener) Close added in v1.5.0

func (l *RegistryDataListener) Close()

Close all RegistryConfigurationListener in subscribed

func (*RegistryDataListener) DataChange

func (l *RegistryDataListener) DataChange(eventType remoting.Event) bool

DataChange accepts all events sent from the zookeeper server and trigger the corresponding listener for processing

func (*RegistryDataListener) SubscribeURL added in v1.5.0

func (l *RegistryDataListener) SubscribeURL(url *common.URL, listener config_center.ConfigurationListener)

SubscribeURL is used to set a watch listener for url

func (*RegistryDataListener) UnSubscribeURL added in v1.5.0

UnSubscribeURL is used to unset a watch listener for url

Jump to

Keyboard shortcuts

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