Documentation ¶
Index ¶
- Variables
- func RegisterHealthServiceServer(s server.Server, sh HealthServiceServer, opts ...server.HandlerOption) error
- type CheckFunc
- type Handler
- func (h *Handler) Healthy(ctx context.Context, req *codecpb.Frame, rsp *codecpb.Frame) error
- func (h *Handler) Live(ctx context.Context, req *codecpb.Frame, rsp *codecpb.Frame) error
- func (h *Handler) Ready(ctx context.Context, req *codecpb.Frame, rsp *codecpb.Frame) error
- func (h *Handler) Version(ctx context.Context, req *codecpb.Frame, rsp *codecpb.Frame) error
- type HealthServiceClient
- type HealthServiceServer
- type Option
- type Options
- type Stater
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HealthServiceName = "HealthService"
)
View Source
var ( HealthServiceServerEndpoints = []v3.EndpointMetadata{ { Name: "HealthService.Healthy", Path: "/health", Method: "GET", Body: "", Stream: false, }, { Name: "HealthService.Healthy", Path: "/healthz", Method: "GET", Body: "", Stream: false, }, { Name: "HealthService.Live", Path: "/live", Method: "GET", Body: "", Stream: false, }, { Name: "HealthService.Live", Path: "/livez", Method: "GET", Body: "", Stream: false, }, { Name: "HealthService.Ready", Path: "/ready", Method: "GET", Body: "", Stream: false, }, { Name: "HealthService.Ready", Path: "/readyz", Method: "GET", Body: "", Stream: false, }, { Name: "HealthService.Version", Path: "/version", Method: "GET", Body: "", Stream: false, }, } )
Functions ¶
func RegisterHealthServiceServer ¶
func RegisterHealthServiceServer(s server.Server, sh HealthServiceServer, opts ...server.HandlerOption) error
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
type HealthServiceClient ¶ added in v3.10.31
type HealthServiceClient interface { Healthy(ctx context.Context, req *codec.Frame, opts ...client.CallOption) (*codec.Frame, error) Live(ctx context.Context, req *codec.Frame, opts ...client.CallOption) (*codec.Frame, error) Ready(ctx context.Context, req *codec.Frame, opts ...client.CallOption) (*codec.Frame, error) Version(ctx context.Context, req *codec.Frame, opts ...client.CallOption) (*codec.Frame, error) }
func NewHealthServiceClient ¶ added in v3.10.31
func NewHealthServiceClient(name string, c client.Client) HealthServiceClient
type HealthServiceServer ¶
type HealthServiceServer interface { Healthy(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error Live(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error Ready(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error Version(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error }
type Option ¶
type Option func(*Options)
func HealthChecks ¶ added in v3.11.35
func LiveChecks ¶
func ReadyChecks ¶
Click to show internal directories.
Click to hide internal directories.