health

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(router *gin.Engine, database *mongo.Database)

SetupRoutes registers health check routes

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is a controller for health check actions

func NewHealthController

func NewHealthController(database *mongo.Database) *Controller

NewHealthController creates a new health controller

func (*Controller) GetHealth

func (c *Controller) GetHealth(ctx *gin.Context)

GetHealth returns the health status of the API

type Response

type Response struct {
	Up bool `json:"up"`
	DB bool `json:"db"`
}

Response is a health check response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL