Documentation ¶
Index ¶
Constants ¶
View Source
const (
InfluxStatusOK = "pass"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller definition.
func NewController ¶
func NewController(checks []Check, logger *zap.Logger) *Controller
NewController creates a Controller instance.
func (*Controller) HealthCheck ¶
func (c *Controller) HealthCheck(ctx *fiber.Ctx) error
HealthCheck handler for the endpoint /health.
func (*Controller) ReadyCheck ¶
func (c *Controller) ReadyCheck(ctx *fiber.Ctx) error
ReadyCheck handler for the endpoint /ready.
type HealthCheck ¶
type HealthCheck struct {
Status string `json:"status"`
}
type ReadyCheck ¶
type ReadyCheck struct {
Ready string `json:"ready"`
}
Click to show internal directories.
Click to hide internal directories.