gorush/core/health.go

10 lines
189 B
Go

package core
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)
}