Discover Packages
github.com/hoshsadiq/go-healthcheck
checkers
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 20, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package checkers adds some basic checkers for the package healthcheck.
func DiskSpace(dir string , threshold uint64 ) healthcheck.Checker
DiskSpace returns a diskSpace health checker, which checks if filesystem usage is above the threshold which is defined in percentage.
func Heartbeat(filepath string ) healthcheck.Checker
Heartbeat returns a heartbeat health checker. Heartbeat files are generally used to take hosts out of rotation from the loadbalancers.
Removing the heartbeat file allows you to debug the application host in case of failures.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.