health

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName string = "http-health-endpoints"
)

Variables

View Source
var ErrUnknownModule = fmt.Errorf("module is not the %s module", ModuleName)

Functions

This section is empty.

Types

type Module

type Module struct {
	modules.Base
	// contains filtered or unexported fields
}

func New

func New(modules ...string) *Module

func (*Module) Configure

func (m *Module) Configure(opts ...modules.Option) error

func (*Module) HealthHandler

func (m *Module) HealthHandler(ctx *gin.Context)

func (*Module) Shutdown

func (m *Module) Shutdown() error

func (*Module) Start

func (m *Module) Start() error

type ModuleHealthCheck

type ModuleHealthCheck interface {
	Health(context.Context) error
}

Jump to

Keyboard shortcuts

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