2022-11-09 06:07:51 +00:00
|
|
|
package core
|
2017-11-12 14:44:33 +00:00
|
|
|
|
2022-11-09 06:07:51 +00:00
|
|
|
import "context"
|
2017-11-12 14:44:33 +00:00
|
|
|
|
|
|
|
// Health defines a health-check connection.
|
|
|
|
type Health interface {
|
|
|
|
// Check returns if server is healthy or not
|
|
|
|
Check(c context.Context) (bool, error)
|
|
|
|
}
|