etcdstorage

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

func NewEtcd

func NewEtcd(endpoints []string) *Etcd

func (*Etcd) Del

func (s *Etcd) Del(key string)

func (*Etcd) DelPrefix

func (s *Etcd) DelPrefix(prefix string)

func (*Etcd) Get

func (s *Etcd) Get(key string, obj interface{}) error

func (*Etcd) List

func (s *Etcd) List(root string) (map[string]string, error)

func (*Etcd) Set

func (s *Etcd) Set(key string, val interface{}) error

func (*Etcd) SetWithExpiration

func (s *Etcd) SetWithExpiration(key string, val interface{},
	exp time.Duration) error

func (*Etcd) Watch

func (s *Etcd) Watch(prefix string) clientv3.WatchChan

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL