Documentation ¶
Index ¶
- Constants
- type Error
- type Etcdv3
- func (e *Etcdv3) GetDetail(ctx context.Context, key string) (*clientv3.GetResponse, error)
- func (e *Etcdv3) Health(ctx context.Context) error
- func (e *Etcdv3) List(ctx context.Context, key string) ([]string, error)
- func (e *Etcdv3) Update(ctx context.Context, key, value string) (*clientv3.PutResponse, error)
Constants ¶
View Source
const (
ErrCodeKeyNotFound int = iota + 1
)
View Source
const (
Timeout time.Duration = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
func NewKeyNotFoundError ¶
Click to show internal directories.
Click to hide internal directories.