Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event interface { AddEvent(key string, value []byte) UpdateEvent(key string, oldData, curData []byte) DeleteEvent(key string, value []byte) }
Event for callback register
type Storage ¶
type Storage interface { GetLocker(path string) (Locker, error) // get locker with new connection Register(path string, data []byte) error // register self node RegisterAndWatch(path string, data []byte) error // register and watch self node Add(key string, value []byte) error // add new node data Delete(key string) ([]byte, error) // delete node Update(key string, data []byte) error // update node data Get(key string) ([]byte, error) // get node data List(key string) ([]string, error) // list all children nodes Exist(key string) (bool, error) // check node exist Stop() // close connection }
Storage interface for key/value storage
Click to show internal directories.
Click to hide internal directories.