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.
- Host: GitHub
- URL: https://github.com/borislavv/go-liveness-prober
- Owner: Borislavv
- License: apache-2.0
- Created: 2024-10-01T08:31:33.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T10:11:16.000Z (8 months ago)
- Last Synced: 2024-12-07T03:08:52.412Z (6 months ago)
- Topics: golang, liveness-probe
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
}