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)
| 346 | // |
| 347 | // See WithHealthEndpointAt for the general implementation. |
| 348 | func 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. |
| 353 | func NewServeMux(opts ...ServeMuxOption) *ServeMux { |