controllers

package
v0.0.0-...-a60134b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthController

type HealthController struct{}

func NewHealthController

func NewHealthController() *HealthController

func (*HealthController) HealthCheck

func (hc *HealthController) HealthCheck(c *gin.Context)

HealthCheck godoc @Summary Get health status @Description get the health status of the service @Tags health @Accept json @Produce json @Success 200 {object} HealthResponse @Router /health [get]

type HealthResponse

type HealthResponse struct {
	Status    string    `json:"status" example:"healthy"`
	Timestamp time.Time `json:"timestamp" example:"2024-10-26T12:34:56.789Z"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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