Documentation ¶
Index ¶
- func Path(dir string, name string) string
- type Client
- func (c *Client) Add(path string, num int) *Response
- func (c *Client) Close()
- func (c *Client) CreateInt(path string, value int) *Response
- func (c *Client) Del(path string) *Response
- func (c *Client) Get(path string) *Response
- func (c *Client) GetAndWatch(path string, immediately bool, notify WatchNotify)
- func (c *Client) GetList(path string) *Response
- func (c *Client) Inc(path string) *Response
- func (c *Client) Lock(path string)
- func (c *Client) MkDir(path string, value string) *Response
- func (c *Client) MkFile(path string, value string) *Response
- func (c *Client) MkFileTmp(path string, value string) *Response
- func (c *Client) MkFileWithVerb(path string, value string, v Verb) *Response
- func (c *Client) Name() string
- func (c *Client) RemoveWatch(path string) *Response
- func (c *Client) Set(path string, value string) *Response
- func (c *Client) Start()
- func (c *Client) ULock(path string)
- func (c *Client) Watch(path string, immediately bool, notify WatchNotify) *Response
- type MsgSendType
- type WatchNotify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Tag int // contains filtered or unexported fields }
func (*Client) GetAndWatch ¶
func (c *Client) GetAndWatch(path string, immediately bool, notify WatchNotify)
func (*Client) MkFileWithVerb ¶
func (*Client) RemoveWatch ¶
type MsgSendType ¶
type MsgSendType int
type WatchNotify ¶
watch verb is Verb_Create | Verb_Set | Verb_Del
Click to show internal directories.
Click to hide internal directories.