controllers

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHealthcheckFailed = errors.New("healthcheck failed")
)

Functions

func HealthcheckController

func HealthcheckController(checks []checks.Check, config config.Config) gin.HandlerFunc

Types

type CheckStatus

type CheckStatus struct {
	Name string `json:"name"`
	Pass bool   `json:"pass"`
}

func Healthcheck

func Healthcheck(checks []checks.Check, config config.Config) (int, []CheckStatus)

Jump to

Keyboard shortcuts

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