2017-11-18 00:49:01 +02:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Health defines a health-check connection.
|
|
|
|
type Health interface {
|
2019-09-14 14:21:16 +02:00
|
|
|
// Check returns if server is healthy or not
|
2017-11-18 00:49:01 +02:00
|
|
|
Check(c context.Context) (bool, error)
|
|
|
|
}
|