Documentation ¶
Index ¶
- type Server
- func (s *Server) Close()
- func (s *Server) MetricsRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error)
- func (s *Server) StatusLeader(resp http.ResponseWriter, req *http.Request) (interface{}, error)
- func (s *Server) StatusPeers(resp http.ResponseWriter, req *http.Request) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the http server to expose an API for the cluster.
func NewHTTPServer ¶
NewHTTPServer creates a new http server
func (*Server) MetricsRequest ¶
MetricsRequest is the metrics endpoint
func (*Server) StatusLeader ¶
StatusLeader returns the leader
func (*Server) StatusPeers ¶
StatusPeers returns the list of peers
Click to show internal directories.
Click to hide internal directories.