health

package
v0.0.0-...-fc278c0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 8 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 {
	// contains filtered or unexported fields
}

func NewHealthController

func NewHealthController(queue worker.Queue[types.Mail]) *HealthController

func (*HealthController) GetHealth

func (c *HealthController) GetHealth(r *http.Request) api.Response

GetHealth godoc

@Summary		Check service health
@Description	Returns the health status of the service including queue and SMTP connectivity
@Tags			Health
@Produce		json
@Success		200	{object}	map[string]interface{}	"Service is healthy"
@Failure		500	{object}	map[string]interface{}	"Service is unhealthy"
@Router			/api/v1/health [get]

func (*HealthController) Route

func (c *HealthController) Route(r api.Router)

Jump to

Keyboard shortcuts

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