package etcd
import "github.com/coreos/etcd/etcd"
Index ¶
- type Etcd
- func New(c *config.Config) *Etcd
- func (e *Etcd) Mode() Mode
- func (e *Etcd) ReadyNotify() <-chan bool
- func (e *Etcd) Run()
- func (e *Etcd) Stop()
- type Mode
- type ModeGetter
- type ModeHandler
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 StandbyServer *server.StandbyServer // contains filtered or unexported fields }
func New ¶
New returns a new Etcd instance.
func (*Etcd) Mode ¶
func (*Etcd) ReadyNotify ¶
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.
type Mode ¶
type Mode int
type ModeGetter ¶
type ModeGetter interface { Mode() Mode }
type ModeHandler ¶
type ModeHandler struct { ModeGetter PeerModeHandler http.Handler StandbyModeHandler http.Handler }
func (*ModeHandler) ServeHTTP ¶
func (h *ModeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Source Files ¶
- Version
- v0.4.0
- Published
- May 21, 2014
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 11 minutes ago –
Tools for package owners.