Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatcherI ¶
type WatcherI interface {
GetLocalIp() string
Create(path string, data string) error
Delete(path string) error
Read(path string) (string, uint64, error)
//return keys, index, error
List(path string) ([]string, uint64, error)
Update(path string, data []byte) error
//cb should return afterIndex
Watch(path string, cb func() (uint64, error)) error
CreateEphemeral(path string, data []byte) error
CreateEphemeralInOrder(path string, data []byte) error
Close() error
}
Click to show internal directories.
Click to hide internal directories.