client

package
v0.0.0-...-580af04 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(key string) (*store.KVPair, error)
	Put(key string, value []byte, options *store.WriteOptions) error
	Delete(key string) error
	Exists(key string) (bool, error)
	List(prefix string) ([]*store.KVPair, error)
	DeleteTree(dir string) error
	Watch(key string, stopCh <-chan struct{}) (<-chan *store.KVPair, error)
	WatchTree(dir string, stopCh <-chan struct{}) (<-chan []*store.KVPair, error)
	NewLock(key string, options *store.LockOptions) (store.Locker, error)
	AtomicPut(key string, value []byte, previous *store.KVPair, options *store.WriteOptions) (bool, *store.KVPair, error)
	AtomicDelete(key string, previous *store.KVPair) (bool, error)
}

func New

func New(addr string, tlsConfig *tls.Config, dialTimeout time.Duration) Client

Jump to

Keyboard shortcuts

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