etcd2

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd2Connect

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

Etcd2Connect represents a connection to the etcd2 server.

func NewEtcd2Connect

func NewEtcd2Connect(etcd2EndPoint string) (*Etcd2Connect, error)

NewDBConnect is a factory method that returns a new db connection.

func (*Etcd2Connect) Get

func (e *Etcd2Connect) Get(data map[string]string) (map[string]string, error)

Get returns the etcd2 keys for a given set of keys

func (*Etcd2Connect) Make

func (e *Etcd2Connect) Make(data map[string]string) error

Make creates the etcd2 keys if they do not exist

func (*Etcd2Connect) Set

func (e *Etcd2Connect) Set(data map[string]string) error

Set sets the etcd2 key with a value and returns the response or an error.

Jump to

Keyboard shortcuts

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