storage

package
v2.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KMissingError    = errors.New("No such key")
	KNilNodeError    = errors.New("Etcd Store returns a nil node")
	KDirNodeError    = errors.New("Etcd Store returns this is a directory node")
	KNonDirNodeError = errors.New("Etcd Store returns this is a non-directory node")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	Get(key string, v interface{}) error
	GetRaw(key string) (string, error)
	Set(key string, v interface{}, force ...bool) error
	SetWithTTL(key string, v interface{}, ttlSec int, force ...bool) error
	Watch(key string) chan string
	KeysByPrefix(prefix string) ([]string, error)
	Remove(key string) error
	TryRemoveDir(key string)
	RemoveDir(key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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