etcd

package
v0.0.0-...-8dfccdc Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Kv     clientv3.KV
	Client *clientv3.Client
	// contains filtered or unexported fields
}

func New

func New(conf *model.Config, timeout time.Duration) (*DB, error)

func (*DB) Get

func (db *DB) Get(ctx context.Context, req *sPb.GetReq) (*sPb.GetResp, error)

func (*DB) List

func (db *DB) List(ctx context.Context, req *sPb.ListReq) (*sPb.ListResp, error)

func (*DB) StartCollector

func (db *DB) StartCollector(ctx context.Context)

Jump to

Keyboard shortcuts

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