Documentation ¶
Index ¶
- func DebugRoutes(mux *http.ServeMux) *http.ServeMux
- func HealthRoutes(mux *http.ServeMux) *http.ServeMux
- func MetricRoutes(mux *http.ServeMux, reg *prometheus.Registry) *http.ServeMux
- func NewBearerRoundTripper(token string, rt http.RoundTripper) http.RoundTripper
- func NewDebugRoundTripper(logger log.Logger, next http.RoundTripper) *debugRoundTripper
- func ReloadRoutes(mux *http.ServeMux, reload func() error) *http.ServeMux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugRoutes ¶
DebugRoutes adds the debug handlers to a mux.
func HealthRoutes ¶
HealthRoutes adds the health checks to a mux.
func MetricRoutes ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.