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 ¶ added in v1.25.3
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.
type ZookeeperTreeCacheEvent ¶
A ZookeeperTreeCacheEvent models a Zookeeper event for a path.
Click to show internal directories.
Click to hide internal directories.