Documentation ¶
Index ¶
- func New(opts ...EtcdOpts) (storage.Connection, error)
- type Etcd
- func (e *Etcd) Bucket(bucket ...string) *storage.Bucket
- func (e *Etcd) Close()
- func (e *Etcd) Delete(k string) error
- func (e *Etcd) Encoding() encoding.Coder
- func (e *Etcd) Exists(k string) bool
- func (e *Etcd) Get(k string, v any) error
- func (e *Etcd) Iter(ctx context.Context, pfx string) types.Iterator[string, []byte]
- func (e *Etcd) Keys(pfx string) ([]string, error)
- func (e *Etcd) Len(pfx string) (int, error)
- func (e *Etcd) PrintDebug(pfx string) error
- func (e *Etcd) Set(k string, v any, op ...storage.Option) error
- func (e *Etcd) Tx(pfx string, fn func(tx storage.Transactioner) error) error
- func (e *Etcd) Values(pfx string) ([][]byte, error)
- func (e *Etcd) Watch(ctx context.Context, pfx string) types.Watcher[string, []byte]
- type EtcdOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
func (*Etcd) PrintDebug ¶
Click to show internal directories.
Click to hide internal directories.