MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / WithHealthzEndpoint

Function WithHealthzEndpoint

runtime/mux.go:348–350  ·  view source on GitHub ↗

WithHealthzEndpoint returns a ServeMuxOption that will add a /healthz endpoint to the created ServeMux. See WithHealthEndpointAt for the general implementation.

(healthCheckClient grpc_health_v1.HealthClient)

Source from the content-addressed store, hash-verified

346//
347// See WithHealthEndpointAt for the general implementation.
348func WithHealthzEndpoint(healthCheckClient grpc_health_v1.HealthClient) ServeMuxOption {
349 return WithHealthEndpointAt(healthCheckClient, "/healthz")
350}
351
352// NewServeMux returns a new ServeMux whose internal mapping is empty.
353func NewServeMux(opts ...ServeMuxOption) *ServeMux {

Calls 1

WithHealthEndpointAtFunction · 0.85