etcd

package
v0.0.0-...-e6d1baa Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: Apache-2.0 Imports: 5 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 struct {
	Client *goetcd.Client
}

func NewClient

func NewClient(machines []string, cert, key, caCert string) (*Client, error)

* New Etcd cluster connections return *etcd.Client * If Connection to cluster can not made, return error

func (*Client) GetValues

func (c *Client) GetValues(keys []string) (map[string]string, error)

implement Store.Client interface, GetValues method

func (*Client) WatchPrefix

func (c *Client) WatchPrefix(prefix string, waitIndex uint64, stopChan chan bool) (uint64, error)

Jump to

Keyboard shortcuts

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