services

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthHandler

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

HealthHandler handles health check requests

func NewHealthHandler

func NewHealthHandler(log logging.Logger, db PingContexter) *HealthHandler

NewHealthHandler creates a new health handler

func (*HealthHandler) HandleHealthCheck

func (h *HealthHandler) HandleHealthCheck(c echo.Context) error

HandleHealthCheck handles health check requests

func (*HealthHandler) Register

func (h *HealthHandler) Register(e *echo.Echo)

Register registers the health check routes

type PingContexter

type PingContexter interface {
	PingContext(ctx context.Context) error
}

PingContexter is an interface for database health checks

Jump to

Keyboard shortcuts

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