Versions in this module Expand all Collapse all v0 v0.2.0 Jun 7, 2023 Changes in this version + type Middleware struct + func NewMiddleware(options ...Option) *Middleware + func (mw *Middleware) Collector() prometheus.Collector + func (mw *Middleware) Handler(name string, handler http.Handler) http.Handler + func (mw *Middleware) HandlerFunc(name string, handler http.HandlerFunc) http.Handler + type Option interface v0.1.0 May 7, 2021 Changes in this version + type HandlerOption interface + func WithName(name string) HandlerOption + type ServeMux struct + func NewServeMux(options ...ServeMuxOption) *ServeMux + func (mux *ServeMux) Collector() prometheus.Collector + func (mux *ServeMux) Handle(pattern string, handler http.Handler, options ...HandlerOption) + func (mux *ServeMux) HandleFunc(pattern string, handler http.HandlerFunc, options ...HandlerOption) + func (mux *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ServeMuxOption interface + func WithCode() ServeMuxOption + func WithConstLabels(labels prometheus.Labels) ServeMuxOption + func WithMethod() ServeMuxOption + func WithNamespace(namespace string) ServeMuxOption