Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Health ¶
type Health struct {
// contains filtered or unexported fields
}
Health implements a basic health check
func (*Health) Healthy ¶ added in v0.0.15
Healthy returns `true` if the service is healthy, or `false` otherwise
func (*Health) ServeHTTP ¶ added in v0.0.15
func (health *Health) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements a `http.Handler` implements https://pkg.go.dev/net/http#Handler
func (*Health) SetServingStatus ¶
func (health *Health) SetServingStatus(status healthpb.HealthCheckResponse_ServingStatus)
SetServingStatus updates the serving status
Click to show internal directories.
Click to hide internal directories.