Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Logger *log.Logger WriteTrace bool // Detailed logging of write path // contains filtered or unexported fields }
Handler represents an HTTP handler for the InfluxDB server.
func NewHandler ¶
NewHandler returns a new instance of Handler.
func (*Handler) ServeHTTP ¶
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP responds to HTTP request to the handler.
func (*Handler) SetLogOutput ¶
SetLogOutput sets writer for all handler log output.
type SnapshotHandler ¶
type SnapshotHandler struct {
CreateSnapshotWriter func() (*influxdb.SnapshotWriter, error)
}
SnapshotHandler streams out a snapshot from the server.
func (*SnapshotHandler) ServeHTTP ¶
func (h *SnapshotHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.