modulepackage
1.2.2
Repository: https://github.com/keloran/go-healthcheck.git
Documentation: pkg.go.dev
# README
Healthcheck
This allows you to run health checks for the system and dependencies
Guide
You need to put the following json into your SERVICE_DEPENDENCIES environment setting
{
"dependencies":[{
"name": <service_name>,
"url": <service_url>,
"ping": <is it just a ping test or a full healthcheck>
}]
}
Optional Settings
SERVICE_NAME // sets the name otherwise it is blank
# Functions
HTTP the request as done by routing.
# Structs
Dependencies list the dependencies to test.
Dependency what to test.
Health give the status and its dependencies.
HealthCheck model.
# Type aliases
HealthStatus define its type.