etcd

package
v0.0.0-...-55fbde6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd3

type Etcd3 struct {
	datastore.Datastore
	Client *etcdv3.Client
	Key    etcdv3.KV
}

Etcd3 is a struct for the etcd v3 driver

func NewV3

func NewV3(host, port string) (*Etcd3, error)

NewV3 returns a pointer to an Etcd3 struct or an error

func (Etcd3) Find

func (e Etcd3) Find(queryStr string, callback datastore.ResultCallback)

Find finds data in etcd

func (Etcd3) FindAndUpdate

func (e Etcd3) FindAndUpdate(queryStr string, update interface{}, callback datastore.ResultCallback)

FindAndUpdate updates data and returns it from etcd

func (Etcd3) Remove

func (e Etcd3) Remove(queryStr string, callback datastore.NoResultCallback)

Remove removes data in etcd

func (Etcd3) Save

func (e Etcd3) Save(key string, data interface{}, callback datastore.NoResultCallback)

Save saves data in etcd

func (Etcd3) Update

func (e Etcd3) Update(queryStr string, update interface{}, callback datastore.NoResultCallback)

Update updates data in etcd

Jump to

Keyboard shortcuts

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