health

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package health implements the application health verifier to EKS knows if application is healthy

Index

Constants

This section is empty.

Variables

View Source
var (
	//HEALTH_CHECKER_ADDRESS receives the health endpoint port path to EKS to use
	HEALTH_CHECKER_ADDRESS = "HEALTH_CHECKER_ADDRESS"

	//HEALTH_CHECKER_PATH receives the health endpoint path to EKS to use
	HEALTH_CHECKER_PATH = "HEALTH_CHECKER_PATH"
)

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker func() error

HealthChecker is a function that will return if the application is ok

type HealthInterface

type HealthInterface interface {
	HealthCheck(
		logger logger.Logger,
		channelError chan<- error,
		checkers ...HealthChecker,
	)
}

HealthInterface is an interface to implement the methods that health package implements

func NewHealthHandler

func NewHealthHandler() HealthInterface

NewHealthHandler is used to return a instance of the required interface, so you can use health methods

Jump to

Keyboard shortcuts

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