Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Server ¶
Server starts the metrics server on the given address, will be closed when the given context is canceled.
func Use ¶
func Use(router *gin.Engine, metricsPrefix string, reg prometheus.Registerer)
Use register the gin metric
Types ¶
type ProbesController ¶
type ProbesController struct{}
ProbesController probe check controller
func NewProbesController ¶
func NewProbesController() *ProbesController
NewProbesController returns an ProbesController instance
func (*ProbesController) HealthCheck ¶
func (a *ProbesController) HealthCheck(c *gin.Context)
HealthCheck the api controller for health check
func (*ProbesController) Ready ¶
func (a *ProbesController) Ready(c *gin.Context)
Ready the api controller for ready check
Click to show internal directories.
Click to hide internal directories.