zookeeper

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSessionTimeout = time.Second * 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides a wrapper around the zookeeper client

func NewZookeeperClient

func NewZookeeperClient(machines []string, user, password, openUser, openPassword string) (*Client, error)

func (*Client) Add

func (c *Client) Add(path string, value []byte, flags int32) (string, error)

func (*Client) Client added in v1.0.4

func (c *Client) Client() *zk.Conn

func (*Client) Delete added in v1.0.2

func (c *Client) Delete(path string) error

func (*Client) GetValues

func (c *Client) GetValues(keys []string) (map[string]string, error)

func (*Client) Lock added in v1.0.3

func (c *Client) Lock(path string) *zk.Lock

func (*Client) Modify added in v1.0.2

func (c *Client) Modify(path string, value []byte) error

func (*Client) WatchPrefix

func (c *Client) WatchPrefix(keys []string, waitIndex uint64, stopChan chan bool) (uint64, error)

Jump to

Keyboard shortcuts

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