Documentation ¶
Index ¶
- Variables
- type HttpService
- func (hs *HttpService) HandlerPing(w http.ResponseWriter, req *http.Request)
- func (hs *HttpService) HandlerQuery(w http.ResponseWriter, req *http.Request)
- func (hs *HttpService) HandlerWrite(w http.ResponseWriter, req *http.Request)
- func (hs *HttpService) Register(mux *http.ServeMux)
- func (hs *HttpService) WriteError(w http.ResponseWriter, req *http.Request, status int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthentication = errors.New("authentication failed") ErrMethodNotAllowed = errors.New("method not allowed") ErrDatabaseNotFound = errors.New("database not found") ErrDatabaseForbidden = errors.New("database forbidden") ErrGzipUnableDecode = errors.New("unable to decode gzip body") )
Functions ¶
This section is empty.
Types ¶
type HttpService ¶
type HttpService struct {
// contains filtered or unexported fields
}
func NewHttpService ¶
func NewHttpService(ic *backend.InfluxCluster, nodecfg *backend.NodeConfig) (hs *HttpService)
func (*HttpService) HandlerPing ¶
func (hs *HttpService) HandlerPing(w http.ResponseWriter, req *http.Request)
func (*HttpService) HandlerQuery ¶
func (hs *HttpService) HandlerQuery(w http.ResponseWriter, req *http.Request)
func (*HttpService) HandlerWrite ¶
func (hs *HttpService) HandlerWrite(w http.ResponseWriter, req *http.Request)
func (*HttpService) Register ¶
func (hs *HttpService) Register(mux *http.ServeMux)
func (*HttpService) WriteError ¶ added in v1.4.6
func (hs *HttpService) WriteError(w http.ResponseWriter, req *http.Request, status int, err error)
Click to show internal directories.
Click to hide internal directories.