NewServer returns a new Server.
()
| 51 | |
| 52 | // NewServer returns a new Server. |
| 53 | func NewServer() *Server { |
| 54 | return &Server{ |
| 55 | statusMap: map[string]healthpb.HealthCheckResponse_ServingStatus{"": healthpb.HealthCheckResponse_SERVING}, |
| 56 | updates: make(map[string]map[healthgrpc.Health_WatchServer]chan healthpb.HealthCheckResponse_ServingStatus), |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // Check implements `service Health`. |
| 61 | func (s *Server) Check(_ context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) { |
no outgoing calls