etcd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEndpoints = []string{"http://127.0.0.1:2379"}

Functions

func DefaultETCDlStore

func DefaultETCDlStore(cfg *config.Config) (client.KeysAPI, error)

func FlattenToKVBytes

func FlattenToKVBytes(n *client.Node, nodes stores.KVBytes) stores.KVBytes

func New

func New(cfg *config.Config) stores.StoreIFace

Types

type ETCDStore

type ETCDStore struct {
	// contains filtered or unexported fields
}

func (*ETCDStore) Delete

func (s *ETCDStore) Delete(key string) error

func (*ETCDStore) Get

func (s *ETCDStore) Get(key string) (*stores.KVByte, error)

func (*ETCDStore) List

func (s *ETCDStore) List(prefix string) (stores.KVBytes, error)

func (*ETCDStore) Set

func (s *ETCDStore) Set(key string, bts []byte) error

Jump to

Keyboard shortcuts

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