http

package
v0.0.0-...-dc0ecbe Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugRoutes

func DebugRoutes(mux *http.ServeMux) *http.ServeMux

DebugRoutes adds the debug handlers to a mux.

func HealthRoutes

func HealthRoutes(mux *http.ServeMux) *http.ServeMux

HealthRoutes adds the health checks to a mux.

func MetricRoutes

func MetricRoutes(mux *http.ServeMux, reg *prometheus.Registry) *http.ServeMux

MetricRoutes adds the metrics endpoint to a mux.

func NewBearerRoundTripper

func NewBearerRoundTripper(token string, rt http.RoundTripper) http.RoundTripper

func NewDebugRoundTripper

func NewDebugRoundTripper(logger log.Logger, next http.RoundTripper) *debugRoundTripper

func ReloadRoutes

func ReloadRoutes(mux *http.ServeMux, reload func() error) *http.ServeMux

ReloadRoutes adds the reload endpoint to a mux.

Types

This section is empty.

Jump to

Keyboard shortcuts

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