MCPcopy
hub / github.com/grpc/grpc-go / setHealthServingStatus

Method setHealthServingStatus

test/end2end_test.go:729–735  ·  view source on GitHub ↗

setHealthServingStatus is a helper function to set the health status.

(service string, status healthpb.HealthCheckResponse_ServingStatus)

Source from the content-addressed store, hash-verified

727
728// setHealthServingStatus is a helper function to set the health status.
729func (te *test) setHealthServingStatus(service string, status healthpb.HealthCheckResponse_ServingStatus) {
730 hs, ok := te.hSrv.(*health.Server)
731 if !ok {
732 panic(fmt.Sprintf("SetServingStatus(%v, %v) called for health server of type %T", service, status, hs))
733 }
734 hs.SetServingStatus(service, status)
735}
736
737type nopCompressor struct {
738 grpc.Compressor

Calls 1

SetServingStatusMethod · 0.45

Tested by

no test coverage detected