etcd

package
v0.2.1-0...-a563d82 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2014 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	Config     *config.Config     // etcd config
	Store      store.Store        // data store
	Registry   *server.Registry   // stores URL information for nodes
	Server     *server.Server     // http server, runs on 4001 by default
	PeerServer *server.PeerServer // peer server, runs on 7001 by default
	// contains filtered or unexported fields
}

func New

func New(c *config.Config) *Etcd

New returns a new Etcd instance.

func (*Etcd) ReadyNotify

func (e *Etcd) ReadyNotify() <-chan bool

ReadyNotify returns a channel that is going to be closed when the etcd instance is ready to accept connections.

func (*Etcd) Run

func (e *Etcd) Run()

Run the etcd instance.

func (*Etcd) Stop

func (e *Etcd) Stop()

Stop the etcd instance.

TODO Shutdown gracefully.

Jump to

Keyboard shortcuts

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