Documentation ¶
Index ¶
- func NewZKDriver(servers []string, options ...DriverOption) driver.Driver
- type Driver
- func (d *Driver) Children(path string) ([]string, error)
- func (d *Driver) Close() error
- func (d *Driver) Delete(path string) error
- func (d *Driver) IsConnected() bool
- func (d *Driver) Open() error
- func (d *Driver) Read(path string) ([]byte, error)
- func (d *Driver) State() zk.State
- func (d *Driver) Watch(path string) ([]byte, <-chan *driver.Event, error)
- func (d *Driver) WatchChildren(path string) ([]string, <-chan *driver.Event, error)
- func (d *Driver) Write(path string, data []byte) error
- type DriverOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZKDriver ¶
func NewZKDriver(servers []string, options ...DriverOption) driver.Driver
NewZKDriver returns new zookeeper driver
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver defines zookeeper driver for Albus
func (*Driver) IsConnected ¶
func (*Driver) WatchChildren ¶
type DriverOption ¶
type DriverOption func(*Driver)
func WithACL ¶
func WithACL(acl []zk.ACL) DriverOption
func WithRootDirectory ¶
func WithRootDirectory(root string) DriverOption
func WithTimeout ¶
func WithTimeout(timeout time.Duration) DriverOption
Click to show internal directories.
Click to hide internal directories.