etcd

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddedEtcd

type EmbeddedEtcd struct {
	Port int
	// contains filtered or unexported fields
}

EmbeddedEtcd provides a single node etcd server.

func NewEmbeddedEtcd

func NewEmbeddedEtcd(port int, dataDir string) (*EmbeddedEtcd, error)

func NewEmbeddedEtcdFromConfig

func NewEmbeddedEtcdFromConfig() (*EmbeddedEtcd, error)

func (*EmbeddedEtcd) Stop

func (se *EmbeddedEtcd) Stop() error

type EtcdClient

type EtcdClient struct {
	Client  *etcd.Client
	KeysApi etcd.KeysAPI
}

func NewEtcdClient

func NewEtcdClient(etcdServers []string, clientTimeout time.Duration) (*EtcdClient, error)

func NewEtcdClientFromConfig

func NewEtcdClientFromConfig() (*EtcdClient, error)

func (*EtcdClient) GetInt64

func (client *EtcdClient) GetInt64(key string) (int64, error)

func (*EtcdClient) SetInt64

func (client *EtcdClient) SetInt64(key string, value int64) error

func (*EtcdClient) Stop

func (client *EtcdClient) Stop()

Jump to

Keyboard shortcuts

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