File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,20 @@ func (s *healthServer) Check(ctx context.Context, in *healthPb.HealthCheckReques
48
48
return & healthPb.HealthCheckResponse {Status : healthPb .HealthCheckResponse_SERVING }, nil
49
49
}
50
50
51
+ func (s * healthServer ) List (ctx context.Context , _ * healthPb.HealthListRequest ) (* healthPb.HealthListResponse , error ) {
52
+ // currently only the ext_proc service is provided
53
+ serviceHealthResponse , err := s .Check (ctx , & healthPb.HealthCheckRequest {Service : extProcPb .ExternalProcessor_ServiceDesc .ServiceName })
54
+ if err != nil {
55
+ return nil , err
56
+ }
57
+
58
+ return & healthPb.HealthListResponse {
59
+ Statuses : map [string ]* healthPb.HealthCheckResponse {
60
+ extProcPb .ExternalProcessor_ServiceDesc .ServiceName : serviceHealthResponse ,
61
+ },
62
+ }, nil
63
+ }
64
+
51
65
func (s * healthServer ) Watch (in * healthPb.HealthCheckRequest , srv healthPb.Health_WatchServer ) error {
52
66
return status .Error (codes .Unimplemented , "Watch is not implemented" )
53
67
}
You can’t perform that action at this time.
0 commit comments