Documentation ¶
Index ¶
- Constants
- func IsExistError(err error) bool
- func IsNoNode(err error) bool
- type Conn
- func (c *Conn) Create(path string, data string, flags int32) error
- func (c *Conn) CreateOrUpdate(path string, data string, flags int32) error
- func (c *Conn) CreateRecursive(zkPath string, data string, flags int32) error
- func (c *Conn) CreateRecursiveIgnoreExist(path string, data string, flags int32) (err error)
- func (c *Conn) Delete(path string) error
- func (c *Conn) DeleteRecursive(zkPath string) error
- func (c *Conn) HasChildren(path string) (bool, error)
- func (c *Conn) NewMutex(path string) *Mutex
- func (c *Conn) Set(path string, data string) error
- type Mutex
Constants ¶
View Source
const (
Ephemeral = zk.FlagEphemeral
)
Variables ¶
This section is empty.
Functions ¶
func IsExistError ¶
Types ¶
type Conn ¶
func NewConnect ¶
create a new zookeeper connection by given addrs
func (*Conn) CreateOrUpdate ¶
Update data of give path, if not exist create one
func (*Conn) CreateRecursive ¶
recursive create a node
func (*Conn) CreateRecursiveIgnoreExist ¶
recursive create a node, if it exists then omit
func (*Conn) HasChildren ¶
test given path whether has sub-node
Click to show internal directories.
Click to hide internal directories.