Documentation ¶
Index ¶
- Variables
- func CloseDatabase(db *Etcd)
- func Delete(db *Etcd, key string) (*clientv3.DeleteResponse, error)
- func DeleteWithPrefix(db *Etcd, key string) (bool, error)
- func Get(db *Etcd, key string) (*clientv3.GetResponse, error)
- func GetDevCountForNodeID(db *Etcd, nodeid string) (int, error)
- func GetWithPrefix(db *Etcd, prefix string) (*clientv3.GetResponse, error)
- func Put(db *Etcd, key, val string) error
- type Etcd
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyExists = errors.New("object already exists") ErrDoesNotExist = errors.New("object does not exist") ErrNodeInvalidName = errors.New("invalid node name") )
errors
Functions ¶
func DeleteWithPrefix ¶
Delete key with prefix
func GetWithPrefix ¶
func GetWithPrefix(db *Etcd, prefix string) (*clientv3.GetResponse, error)
Query keys with Prefix
Types ¶
Click to show internal directories.
Click to hide internal directories.