erigon-pulse/metrics/healthcheck.go
2022-05-07 14:52:04 +07:00

10 lines
177 B
Go

package metrics
// Healthchecks hold an error value describing an arbitrary up/down status.
type Healthcheck interface {
Check()
Error() error
Healthy()
Unhealthy(error)
}