Documentation
¶
Index ¶
- func New(opts ...Option) gin.HandlerFunc
- type Option
- func WithDuration(duration []float64) Option
- func WithEndpointLabelMappingFn(endpointLabelMappingFn RequestLabelMappingFn) Option
- func WithExcludeRegexEndpoint(excludeRegexEndpoint []string) Option
- func WithExcludeRegexMethod(excludeRegexMethod []string) Option
- func WithExcludeRegexStatus(excludeRegexStatus []string) Option
- func WithHandlerUrl(handlerUrl string) Option
- func WithNamespace(namespace string) Option
- func WithPromHandler(router *gin.Engine) Option
- type RequestLabelMappingFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Option) gin.HandlerFunc
New returns a gin.HandlerFunc for exporting some Web metrics
Types ¶
type Option ¶
type Option func(*config)
Option for queue system
func WithEndpointLabelMappingFn ¶
func WithEndpointLabelMappingFn(endpointLabelMappingFn RequestLabelMappingFn) Option
WithEndpointLabelMappingFn set endpointLabelMappingFn function
func WithExcludeRegexEndpoint ¶
WithExcludeRegexEndpoint set excludeRegexEndpoint function regexp
func WithExcludeRegexMethod ¶
WithExcludeRegexMethod set excludeRegexMethod function regexp
func WithExcludeRegexStatus ¶
WithExcludeRegexStatus set excludeRegexStatus function regexp
func WithHandlerUrl ¶
WithHandlerUrl set handlerUrl function
func WithNamespace ¶
WithNamespace set namespace function
func WithPromHandler ¶
WithPromHandler set router function
type RequestLabelMappingFn ¶
Click to show internal directories.
Click to hide internal directories.