Documentation ¶
Index ¶
Constants ¶
View Source
const ( RouteTypePrefix = "prefix" RouteTypeExact = "exact" )
View Source
const ( SegmentsModePreserve = "preserve" SegmentsModeIgnore = "ignore" )
View Source
const ( HandlerTypeBackend = "backend" HandlerTypeRedirect = "redirect" HandlerTypeGone = "gone" )
Variables ¶
View Source
var EnableDebugOutput bool
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics(r prometheus.Registerer)
RegisterMetrics registers Prometheus metrics from the router module and the modules that it directly depends on. To use the default (global) registry, pass prometheus.DefaultRegisterer.
func VersionInfo ¶
func VersionInfo() (v string)
VersionInfo returns human-readable version information in a format suitable for concatenation with other messages.
Types ¶
Click to show internal directories.
Click to hide internal directories.