Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(r *teapot.Router, h RouteHandlers)
RegisterRoutes mounts the Prometheus-format metrics endpoint at /.dirio/metrics. When the provider is nil (e.g. CLI route listing) a plain 200 stub is registered.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) HandlePrometheus ¶
type RouteHandlers ¶
Click to show internal directories.
Click to hide internal directories.