Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
type Prometheus struct { ReqCntURLLabelMappingFn func(c *gin.Context) string // contains filtered or unexported fields }
func NewPrometheus ¶
func NewPrometheus(port int, cs ...prometheus.Collector) *Prometheus
func (*Prometheus) AddURLMappingFn ¶
func (p *Prometheus) AddURLMappingFn(fn func(c *gin.Context) string)
func (*Prometheus) HandlerFunc ¶
func (p *Prometheus) HandlerFunc() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.