zookeeper

package
v3.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 16 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheListener

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

CacheListener defines keyListeners and rootPath

func NewCacheListener

func NewCacheListener(rootPath string) *CacheListener

NewCacheListener creates a new CacheListener

func (*CacheListener) AddListener

func (l *CacheListener) AddListener(key string, listener config_center.ConfigurationListener)

AddListener will add a listener if loaded

func (*CacheListener) DataChange

func (l *CacheListener) DataChange(event remoting.Event) bool

DataChange changes all listeners' event

func (*CacheListener) RemoveListener

func (l *CacheListener) RemoveListener(key string, listener config_center.ConfigurationListener)

RemoveListener will delete a listener if loaded

Jump to

Keyboard shortcuts

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