store

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 12 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Store

type Store interface {
	Get(ctx context.Context, key string, recursive bool, data interface{}) error
	GetWithRevision(ctx context.Context, key string, rev int64, recursive bool, data interface{}) error
	Set(ctx context.Context, key string, data interface{}) error
	Delete(ctx context.Context, key string) error
	Watch(ctx context.Context, key string) (Watcher, error)
}

func New

func New(c *config.Config) Store

type Watcher

type Watcher interface {
	NextResponse() (clientv3.WatchResponse, bool)
	io.Closer
}

Jump to

Keyboard shortcuts

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