Involved Source Filesclient.gologging.goproducer.go Package health provides a service that exposes server's health and it must be
imported to enable support for client-side health checks.
Package-Level Type Names (total 3, in which 1 is exported)
/* sort exporteds by: | */
Server implements `service Health`.UnimplementedHealthServerhealthgrpc.UnimplementedHealthServermusync.RWMutex If shutdown is true, it's expected all serving status is NOT_SERVING, and
will stay in NOT_SERVING. statusMap stores the serving status of the services this Server monitors.updatesmap[string]map[healthgrpc.Health_WatchServer]chan healthpb.HealthCheckResponse_ServingStatus Check implements `service Health`. List implements `service Health`. Resume sets all serving status to SERVING, and configures the server to
accept all future status changes.
This changes serving status for all services. To set status for a particular
services, call SetServingStatus(). SetServingStatus is called when need to reset the serving status of a service
or insert a new service entry into the statusMap. Shutdown sets all serving status to NOT_SERVING, and configures the server to
ignore all future status changes.
This changes serving status for all services. To set status for a particular
services, call SetServingStatus(). Watch implements `service Health`.(*Server) setServingStatusLocked(service string, servingStatus healthpb.HealthCheckResponse_ServingStatus)( Server) testEmbeddedByValue()
*Server : google.golang.org/grpc/health/grpc_health_v1.HealthServer
func NewServer() *Server
Build constructs and returns a producer and its cleanup function.
*producerBuilder : google.golang.org/grpc/balancer.ProducerBuilder
var producerBuilderSingleton *producerBuilder
Package-Level Functions (total 5, in which 1 is exported)
NewServer returns a new Server.
This function implements the protocol defined at:
https://github.com/grpc/grpc/blob/master/doc/health-checking.md
maxAllowedServices defines the maximum number of resources a List
operation can return. An error is returned if the number of services
exceeds this limit.
The pages are generated with Goldsv0.7.6. (GOOS=linux GOARCH=amd64)