An open API service indexing awesome lists of open source software.

https://github.com/borislavv/go-liveness-prober

Liveness prober implementation.
https://github.com/borislavv/go-liveness-prober

golang liveness-probe

Last synced: 6 months ago
JSON representation

Liveness prober implementation.

Awesome Lists containing this project

README

        

## Liveness Observer for Services

### Usage:

// probe will be failed after 15 seconds
probe := liveness.NewProbe(time.Second*15)

service1 := usefulService1.New()
service2 := usefulService2.New()

probe.Watch(service1, service2)

if !probe.IsAlive() {
panic("observable services are down")
}