etcd

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ETCDRepository

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

func NewETCDRepository

func NewETCDRepository(uri string) *ETCDRepository

func (*ETCDRepository) Delete

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

func (*ETCDRepository) Get

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

func (*ETCDRepository) GetAll

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

func (*ETCDRepository) GetClient

func (e *ETCDRepository) GetClient() (*clientv3.Client, error)

func (*ETCDRepository) Put

func (e *ETCDRepository) 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