Versions in this module Expand all Collapse all v1 v1.10.3 Aug 10, 2021 v1.10.2 Jul 22, 2021 Changes in this version + const DIST_LOCK_KEY + const KVC_KEYCHANGE_DELETE + const KVC_KEYCHANGE_INVAL + const KVC_KEYCHANGE_PUT + type KvcLockResult int + const KVC_LOCK_GRANTED + const KVC_LOCK_OCCUPIED + const KVC_LOCK_RELEASED + const KVC_LOCK_RELEASE_FAIL + const KVC_LOCK_RSLT_INVALID + const KVC_LOCK_SET_FAIL + type Kvi interface + Close func() error + Delete func(key string) error + DistLock func() error + DistTimedLock func(tosec int) error + DistUnlock func() error + Get func(key string) (string, bool, error) + GetRange func(keystart string, keyend string) ([]Kvi_KV, error) + Store func(key string, value string) error + TAS func(key string, testval string, setval string) (bool, error) + TempKey func(key string) error + Transaction func(key, op, value, thenkey, thenval, elsekey, elseval string) (bool, error) + Watch func(key string) (string, int) + WatchCBCancel func(cbh WatchCBHandle) + WatchWithCB func(key string, op int, cb WatchCBFunc, userdata interface{}) (WatchCBHandle, error) + func Open(endpoint string, options string) (Kvi, error) + type Kvi_KV struct + Key string + Value string + type Kvs_etcd struct + func (kvs *Kvs_etcd) Close() error + func (kvs *Kvs_etcd) Delete(key string) error + func (kvs *Kvs_etcd) DistLock() error + func (kvs *Kvs_etcd) DistTimedLock(tosec int) error + func (kvs *Kvs_etcd) DistUnlock() error + func (kvs *Kvs_etcd) Get(key string) (string, bool, error) + func (kvs *Kvs_etcd) GetRange(keystart string, keyend string) ([]Kvi_KV, error) + func (kvs *Kvs_etcd) Store(key string, val string) error + func (kvs *Kvs_etcd) TAS(key string, testval string, setval string) (bool, error) + func (kvs *Kvs_etcd) TempKey(key string) error + func (kvs *Kvs_etcd) Transaction(key, op, value, thenkey, thenval, elsekey, elseval string) (bool, error) + func (kvs *Kvs_etcd) Watch(key string) (string, int) + func (kvs *Kvs_etcd) WatchCBCancel(cbh WatchCBHandle) + func (kvs *Kvs_etcd) WatchWithCB(key string, op int, cb WatchCBFunc, userdata interface{}) (WatchCBHandle, error) + type Kvs_mem struct + func (kvs *Kvs_mem) Close() error + func (kvs *Kvs_mem) Delete(key string) error + func (kvs *Kvs_mem) DistLock() error + func (kvs *Kvs_mem) DistTimedLock(tosec int) error + func (kvs *Kvs_mem) DistUnlock() error + func (kvs *Kvs_mem) Get(key string) (string, bool, error) + func (kvs *Kvs_mem) GetRange(keystart string, keyend string) ([]Kvi_KV, error) + func (kvs *Kvs_mem) Store(key string, val string) error + func (kvs *Kvs_mem) TAS(key string, testval string, setval string) (bool, error) + func (kvs *Kvs_mem) TempKey(key string) error + func (kvs *Kvs_mem) Transaction(key, op, value, thenkey, thenval, elsekey, elseval string) (bool, error) + func (kvs *Kvs_mem) Watch(key string) (string, int) + func (kvs *Kvs_mem) WatchCBCancel(cbh WatchCBHandle) + func (kvs *Kvs_mem) WatchWithCB(key string, op int, cb WatchCBFunc, userdata interface{}) (WatchCBHandle, error) + type WatchCBFunc func(key string, val string, op int, userdata interface{}) bool + type WatchCBHandle struct