Documentation
¶
Index ¶
- func HandleBasic(mux *http.ServeMux, server *etcdserver.EtcdServer)
- func HandleHealth(mux *http.ServeMux, srv *etcdserver.EtcdServer)
- func HandleMetricsHealth(mux *http.ServeMux, srv *etcdserver.EtcdServer)
- func HandlePrometheus(mux *http.ServeMux)
- func NewPeerHandler(s *etcdserver.EtcdServer) http.Handler
- func WriteError(w http.ResponseWriter, r *http.Request, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBasic ¶
func HandleBasic(mux *http.ServeMux, server *etcdserver.EtcdServer)
HandleBasic adds handlers to a mux for serving JSON etcd client requests that do not access the v2 store.
func HandleHealth ¶
func HandleHealth(mux *http.ServeMux, srv *etcdserver.EtcdServer)
HandleHealth registers health handler on '/health'.
func HandleMetricsHealth ¶
func HandleMetricsHealth(mux *http.ServeMux, srv *etcdserver.EtcdServer)
HandleMetricsHealth registers metrics and health handlers.
func HandlePrometheus ¶
HandlePrometheus registers prometheus handler on '/metrics'.
func NewPeerHandler ¶
func NewPeerHandler(s *etcdserver.EtcdServer) http.Handler
NewPeerHandler generates an http.Handler to handle etcd peer requests.
func WriteError ¶
func WriteError(w http.ResponseWriter, r *http.Request, err error)
WriteError logs and writes the given Error to the ResponseWriter If Error is an etcdErr, it is rendered to the ResponseWriter Otherwise, it is assumed to be a StatusInternalServerError
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.