Versions in this module Expand all Collapse all v0 v0.9.1 Sep 26, 2019 Changes in this version + type EventFunc func(event *clientv3.Event) error + type Option func(opts *Options) + func WithHost(ip string) Option + func WithPassword(pwd string) Option + func WithPort(port string) Option + func WithTimeout(timeout time.Duration) Option + func WithUsername(username string) Option + type Options struct + Host string + Password string + Port string + Timeout time.Duration + Username string + type Store interface + Count func(prefix string) (resp *clientv3.GetResponse, err error) + Del func(key string) (resp *clientv3.DeleteResponse, err error) + DelWithLease func(key string, leaseId int64) (resp *clientv3.DeleteResponse, err error) + Get func(key string) (resp *clientv3.GetResponse, err error) + GetAll func(prefix string) (resp *clientv3.GetResponse, err error) + Init func(ctx context.Context, option ...Option) (err error) + KeepAlive func(key, val string) (err error) + KeepOnce func(key string, leaseId int64) (resp *clientv3.LeaseKeepAliveResponse, err error) + Lease func(key string, ttl int64) (resp *clientv3.LeaseGrantResponse, err error) + Put func(key, val string) (resp *clientv3.PutResponse, err error) + PutWithLease func(key, val string, id clientv3.LeaseID) (resp *clientv3.PutResponse, err error) + Watch func(key string, putFunc EventFunc, delFunc EventFunc) + func NewStore() Store