Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *Options)
func WithPassword ¶
func WithTimeout ¶
func WithUsername ¶
type Store ¶
type Store interface { Init(ctx context.Context, option ...Option) (err error) Get(key string) (resp *clientv3.GetResponse, err error) GetAll(prefix string) (resp *clientv3.GetResponse, err error) Count(prefix string) (resp *clientv3.GetResponse, err error) Put(key, val string) (resp *clientv3.PutResponse, err error) PutWithLease(key, val string, id clientv3.LeaseID) (resp *clientv3.PutResponse, err error) Del(key string) (resp *clientv3.DeleteResponse, err error) DelWithLease(key string, leaseId int64) (resp *clientv3.DeleteResponse, err error) KeepOnce(key string, leaseId int64) (resp *clientv3.LeaseKeepAliveResponse, err error) KeepAlive(key, val string) (err error) Watch(key string, putFunc EventFunc, delFunc EventFunc) Lease(key string, ttl int64) (resp *clientv3.LeaseGrantResponse, err error) }
Click to show internal directories.
Click to hide internal directories.