Version: v2.5.0+incompatible Latest Latest

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

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




This section is empty.


This section is empty.


This section is empty.


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.

Source Files

Jump to

Keyboard shortcuts

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