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, listener *zookeeper.ZkEventListener) *CacheListener
NewCacheListener creates a new CacheListener
func (*CacheListener) AddListener ¶
func (l *CacheListener) AddListener(key string, listener registry.MappingListener)
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 registry.MappingListener)
RemoveListener will delete a listener if loaded
Click to show internal directories.
Click to hide internal directories.