http

package
v0.0.0-...-a761d13 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 13 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) *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 NewInstrumentedRoundTripper

func NewInstrumentedRoundTripper(clientName string, next http.RoundTripper) http.RoundTripper

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