...
Package namespace
Overview ▹
Index ▹
func NewKV ¶
func NewKV(kv clientv3.KV, prefix string) clientv3.KV
NewKV wraps a KV instance so that all requests are prefixed with a given string.
func NewLease ¶
func NewLease(l clientv3.Lease, prefix string) clientv3.Lease
NewLease wraps a Lease interface to filter for only keys with a prefix and remove that prefix when fetching attached keys through TimeToLive.
func NewWatcher ¶
func NewWatcher(w clientv3.Watcher, prefix string) clientv3.Watcher
NewWatcher wraps a Watcher instance so that all Watch requests are prefixed with a given string and all Watch responses have the prefix removed.