health

package
v0.0.0-...-4cc3681 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitChecks

func InitChecks()

InitChecks initiates health check jobs

Types

type Status

type Status int

Status represents the status code of a service

const (
	// OK status if all checks were successful
	OK Status = iota

	// Warning status if non-critical issues are discovered
	Warning

	// Failure status when critical problems are discovered
	Failure
)

func APIStatus

func APIStatus() Status

APIStatus returns the database status of the last health check

func SearchStatus

func SearchStatus() Status

SearchStatus returns the database status of the last health check

Jump to

Keyboard shortcuts

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