gorush/rpc/health.go

12 lines
193 B
Go
Raw Normal View History

package rpc
import (
"context"
)
// Health defines a health-check connection.
type Health interface {
// Check returns if server is healthy or not
Check(c context.Context) (bool, error)
}