httphandler

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthHandler

type HealthHandler struct{}

func NewHealthHandler

func NewHealthHandler() HealthHandler

func (HealthHandler) ServeHTTP

func (h HealthHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request)

type MetricsHTTPHandler

type MetricsHTTPHandler struct {
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger, metricCollectors *collector.MetricCollectors, options *Options) *MetricsHTTPHandler

func (*MetricsHTTPHandler) ServeHTTP

func (c *MetricsHTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Options

type Options struct {
	DisableExporterMetrics bool
	TimeoutMargin          float64
	MaxRequests            int
}

type VersionHandler

type VersionHandler struct{}

func NewVersionHandler

func NewVersionHandler() VersionHandler

func (VersionHandler) ServeHTTP

func (h VersionHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request)

Jump to

Keyboard shortcuts

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