etcd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EcodeEventIndexCleared = ee.EcodeEventIndexCleared
	EcodeNodeExist         = ee.EcodeNodeExist
	EcodeKeyNotFound       = ee.EcodeKeyNotFound
)

Variables

This section is empty.

Functions

func DisableDebugLogging

func DisableDebugLogging()

func EnableDebugLogging

func EnableDebugLogging()

Types

type Client

type Client interface {
	GetCluster() []string
	SetTransport(tr *http.Transport)

	CompareAndDelete(key string, prevValue string, prevIndex uint64) (*goetcd.Response, error)
	Create(key string, value string, ttl uint64) (*goetcd.Response, error)
	Delete(key string, recursive bool) (*goetcd.Response, error)
	Get(key string, sort, recursive bool) (*goetcd.Response, error)
	RawGet(key string, sort, recursive bool) (*goetcd.RawResponse, error)
	Set(key string, value string, ttl uint64) (*goetcd.Response, error)
	Update(key string, value string, ttl uint64) (*goetcd.Response, error)

	Watch(prefix string, waitIndex uint64, recursive bool, receiver chan *goetcd.Response, stop chan bool) (*goetcd.Response, error)
}

func NewClient

func NewClient(servers []string) Client

Jump to

Keyboard shortcuts

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