Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller definition. Controller definition.
func NewController ¶
func NewController(checks []health.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 MongoConnections ¶
type MongoConnections struct { Current int32 `bson:"current"` Available int32 `bson:"available"` TotalCreated int32 `bson:"totalCreated"` }
MongoConnections represents a mongo server connection.
type MongoStatus ¶
type MongoStatus struct { Ok int32 `bson:"ok"` Host string `bson:"host"` Version string `bson:"version"` Process string `bson:"process"` Pid int32 `bson:"pid"` Uptime int32 `bson:"uptime"` Connections *MongoConnections `bson:"connections"` }
MongoStatus represent a mongo server status.
Click to show internal directories.
Click to hide internal directories.