treecache

package
v2.2.0-rc.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZookeeperLogger

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

ZookeeperLogger wraps a log.Logger into a zk.Logger.

func NewZookeeperLogger

func NewZookeeperLogger(logger log.Logger) ZookeeperLogger

NewZookeeperLogger is a constructor for ZookeeperLogger.

func (ZookeeperLogger) Printf

func (zl ZookeeperLogger) Printf(s string, i ...interface{})

Printf implements zk.Logger.

type ZookeeperTreeCache

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

A ZookeeperTreeCache keeps data from all children of a Zookeeper path locally cached and updated according to received events.

func NewZookeeperTreeCache

func NewZookeeperTreeCache(conn *zk.Conn, path string, events chan ZookeeperTreeCacheEvent, logger log.Logger) *ZookeeperTreeCache

NewZookeeperTreeCache creates a new ZookeeperTreeCache for a given path.

func (*ZookeeperTreeCache) Stop

func (tc *ZookeeperTreeCache) Stop()

Stop stops the tree cache.

type ZookeeperTreeCacheEvent

type ZookeeperTreeCacheEvent struct {
	Path string
	Data *[]byte
}

A ZookeeperTreeCacheEvent models a Zookeeper event for a path.

Jump to

Keyboard shortcuts

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