health

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthRoutes

func NewHealthRoutes(
	logger logger.Logger,
	handler common.RequestHandler,
	healthController HealthController,
	rootHandler *routeHandlers.RootRouteHandler,
) routes.Route

NewHealthRoutes creates new health routes.

Types

type Health

type Health struct {
	Status  string
	Name    string
	Details map[string]any
}

func HealthToResponseHealth

func HealthToResponseHealth(health checker.Health) Health

type HealthAPIConverter

type HealthAPIConverter struct{}

func NewHealthAPIConverter

func NewHealthAPIConverter() *HealthAPIConverter

func (HealthAPIConverter) ResponseOf

type HealthController

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

func NewHealthController

func NewHealthController(
	healthCheckerManager *health.HealthCheckerManager,
	apiConverter *HealthAPIConverter,
) HealthController

func (HealthController) Health

type HealthResponse

type HealthResponse struct {
	Health     string
	Components []Health
}

type HealthRoutes

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

HealthRoutes struct.

func (HealthRoutes) Setup

func (s HealthRoutes) Setup()

Setup health routes.

Jump to

Keyboard shortcuts

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