Skip to content

sohlich/healthcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go healthchecker

GoDoc

Build Status

This package provide basic tool for application components health checking.

Usage

The healthchecker object use the HealthIndicators to obtain the health status of a component. The indicators are executed sequentialy in infinite loop to keep the complete status updated. The indicators should not be long running processes/functions.

   // Create healthchecker
    checker := healthcheck.New(time.Millisecond)

    // Register HealthIndicator
    checker.RegisterIndicator(&SimpleHttpAliveIndicator{})

    // Add hooks that consume the results.
    checker.AddHook("testHook", SimpleLogHook)

    // Start the checker
    checker.Start()

About

Package for continuous health checking of application.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages