Documentation
¶
Index ¶
- Variables
- type Client
- type ClientK
- func (c *ClientK) Close() error
- func (c *ClientK) Create(ctx context.Context, key string, value []byte) error
- func (c *ClientK) Delete(ctx context.Context, key string, revision int64) error
- func (c *ClientK) Get(ctx context.Context, key string) (Value, error)
- func (c *ClientK) List(ctx context.Context, key string, rev int) ([]Value, error)
- func (c *ClientK) Put(ctx context.Context, key string, value []byte) error
- func (c *ClientK) Update(ctx context.Context, key string, revision int64, value []byte) error
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("etcdwrapper: key not found")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
List(ctx context.Context, key string, rev int) ([]Value, error)
Get(ctx context.Context, key string) (Value, error)
Put(ctx context.Context, key string, value []byte) error
Create(ctx context.Context, key string, value []byte) error
Update(ctx context.Context, key string, revision int64, value []byte) error
Delete(ctx context.Context, key string, revision int64) error
Close() error
}
Click to show internal directories.
Click to hide internal directories.