Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
type Prometheus struct { MetricsPath string // contains filtered or unexported fields }
Prometheus contains the metrics gathered by the instance and its path
func NewPrometheus ¶
func NewPrometheus(subsystem string) *Prometheus
NewPrometheus generates a new set of metrics with a certain subsystem name
func (*Prometheus) HandlerFunc ¶
func (p *Prometheus) HandlerFunc() fiber.Handler
HandlerFunc is onion or wrapper to handler for fasthttp listenandserve
func (*Prometheus) Use ¶
func (p *Prometheus) Use(r fiber.Router)
Use adds the middleware to a fiber
Click to show internal directories.
Click to hide internal directories.