service

package
v1.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL