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
StandbyServer *server.StandbyServer
// contains filtered or unexported fields
}
func (*Etcd) ReadyNotify ¶
ReadyNotify returns a channel that is going to be closed when the etcd instance is ready to accept connections.
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)
Click to show internal directories.
Click to hide internal directories.