Documentation ¶
Index ¶
- Constants
- Variables
- type ETCD
- func (e *ETCD) Close() error
- func (e *ETCD) Delete(ctx context.Context, key string) error
- func (e *ETCD) DeleteAll(ctx context.Context, prefix string) error
- func (e *ETCD) DeleteIf(ctx context.Context, key string, condition kvstore.Condition) error
- func (e *ETCD) Exists(ctx context.Context, key string) (bool, error)
- func (e *ETCD) Get(ctx context.Context, key string) ([]byte, uint64, error)
- func (e *ETCD) GetAll(ctx context.Context, prefix string) (kvstore.Entries, error)
- func (e *ETCD) GetAllKeys(ctx context.Context, prefix string) ([]string, error)
- func (e *ETCD) GetBatch(ctx context.Context, keys ...string) (kvstore.Entries, error)
- func (e *ETCD) GetFirst(ctx context.Context, prefix string) (*kvstore.Entry, error)
- func (e *ETCD) GetLimit(ctx context.Context, key string, limit int64) (kvstore.Entries, error)
- func (e *ETCD) Move(ctx context.Context, oldKey string, newKey string) error
- func (e *ETCD) MoveReplace(ctx context.Context, oldKey string, newKey string, value []byte) error
- func (e *ETCD) MoveReplaceIf(ctx context.Context, oldKey string, newKey string, value []byte, ...) error
- func (e *ETCD) Set(ctx context.Context, key string, value []byte) error
- func (e *ETCD) SetDelete(ctx context.Context, key string, value []byte, delete string) error
- func (e *ETCD) SetEmpty(ctx context.Context, key string) error
- func (e *ETCD) SetExpiry(ctx context.Context, key string, value []byte, ttl time.Duration) error
- func (e *ETCD) SetIf(ctx context.Context, key string, value []byte, condition kvstore.Condition) error
- func (e *ETCD) SetIfNotExist(ctx context.Context, key string, value []byte) error
- func (e *ETCD) SetIfNotExistExpiry(ctx context.Context, key string, value []byte, ttl time.Duration) error
- func (e *ETCD) SetKeepAlive(ctx context.Context, key string, value []byte) error
- func (e *ETCD) Subscribe(ctx context.Context, prefix string, handler kvstore.SubscriptionHandler) error
- type Options
Constants ¶
View Source
const (
DefaultTTL = 10
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ETCD ¶
type ETCD struct {
// contains filtered or unexported fields
}
ETCD is a wrapper for the etcd client
func NewEmbeddded ¶
func (*ETCD) GetAllKeys ¶
func (*ETCD) MoveReplace ¶
func (*ETCD) MoveReplaceIf ¶
func (*ETCD) SetIfNotExist ¶
func (*ETCD) SetIfNotExistExpiry ¶
func (*ETCD) SetKeepAlive ¶
Click to show internal directories.
Click to hide internal directories.