etcd

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewETCDStorage

func NewETCDStorage(cfg clientv3.Config) (storage.Interface, error)

Types

type ETCDStorage

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

func (*ETCDStorage) Close

func (e *ETCDStorage) Close() error

func (*ETCDStorage) Delete

func (e *ETCDStorage) Delete(ctx context.Context, prefix string, key string) error

func (*ETCDStorage) Get

func (e *ETCDStorage) Get(ctx context.Context, prefix string, key string) ([]byte, error)

func (*ETCDStorage) GetAll

func (e *ETCDStorage) GetAll(ctx context.Context, prefix string) ([][]byte, error)

func (*ETCDStorage) Put

func (e *ETCDStorage) Put(ctx context.Context, prefix string, key string, value []byte) error

Jump to

Keyboard shortcuts

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