Documentation
¶
Overview ¶
Package handlers provides HTTP handlers.
Index ¶
Constants ¶
View Source
const MaxPayloadSize = 16 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProfilingAPI ¶
func NewProfilingAPI ¶
func NewProfilingAPI(base string) *ProfilingAPI
NewProfilingAPI creates a new handler for pprof endpoints
The standard is for this API to live at /debug/pprof
func (*ProfilingAPI) Routes ¶
func (a *ProfilingAPI) Routes() *chi.Mux
type PromMetricsAPI ¶
PromMetricsAPI is a thin wrapper around the Prometheus HTTP handler to integrate with the go-obvious server API.
func NewPromMetricsAPI ¶
func NewPromMetricsAPI(base string) *PromMetricsAPI
func (*PromMetricsAPI) Routes ¶
func (a *PromMetricsAPI) Routes() *chi.Mux
type RemoteWriteAPI ¶
func NewRemoteWriteAPI ¶
func NewRemoteWriteAPI(base string, d *domain.MetricCollector) *RemoteWriteAPI
func (*RemoteWriteAPI) PostMetrics ¶
func (a *RemoteWriteAPI) PostMetrics(w http.ResponseWriter, r *http.Request)
func (*RemoteWriteAPI) Routes ¶
func (a *RemoteWriteAPI) Routes() *chi.Mux
type ShipperAPI ¶
func NewShipperAPI ¶
func NewShipperAPI(base string, d *shipper.MetricShipper) *ShipperAPI
func (*ShipperAPI) Routes ¶
func (a *ShipperAPI) Routes() *chi.Mux
Click to show internal directories.
Click to hide internal directories.