Documentation ¶
Index ¶
- Constants
- Variables
- type ETCD
- func (e *ETCD) Close() error
- func (e *ETCD) Delete(ctx context.Context, key string) (*clientv3.DeleteResponse, error)
- func (e *ETCD) Get(ctx context.Context, key string) (*clientv3.GetResponse, error)
- func (e *ETCD) GetBatch(ctx context.Context, keys ...string) (*clientv3.TxnResponse, error)
- func (e *ETCD) GetLimit(ctx context.Context, key string, limit int64) (*clientv3.GetResponse, error)
- func (e *ETCD) GetPrefix(ctx context.Context, prefix string) (*clientv3.GetResponse, error)
- func (e *ETCD) Set(ctx context.Context, key string, value string) (*clientv3.PutResponse, error)
- func (e *ETCD) SetDelete(ctx context.Context, key string, value string, delete string) error
- func (e *ETCD) SetExpiry(ctx context.Context, key string, value string, ttl time.Duration) (*clientv3.PutResponse, error)
- func (e *ETCD) SetIfNotExist(ctx context.Context, key string, value string) (*clientv3.TxnResponse, error)
- func (e *ETCD) SetIfNotExistExpiry(ctx context.Context, key string, value string, ttl time.Duration) (*clientv3.TxnResponse, error)
- func (e *ETCD) SetKeepAlive(ctx context.Context, key string, value string) (*clientv3.PutResponse, error)
- func (e *ETCD) Watch(ctx context.Context, key string) clientv3.WatchChan
- func (e *ETCD) WatchPrefix(ctx context.Context, prefix string) clientv3.WatchChan
- type Options
Constants ¶
View Source
const (
DefaultTTL = 10
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ETCD ¶ added in v0.1.10
type ETCD struct {
// contains filtered or unexported fields
}
ETCD is a wrapper for the etcd client
func (*ETCD) SetIfNotExist ¶ added in v0.1.10
func (*ETCD) SetIfNotExistExpiry ¶ added in v0.1.10
func (*ETCD) SetKeepAlive ¶ added in v0.1.10
Click to show internal directories.
Click to hide internal directories.