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 @@ -41,6 +41,20 @@ func (s *healthServer) Check(ctx context.Context, in *healthPb.HealthCheckReques
41
41
return & healthPb.HealthCheckResponse {Status : healthPb .HealthCheckResponse_SERVING }, nil
42
42
}
43
43
44
+ func (s * healthServer ) List (ctx context.Context , _ * healthPb.HealthListRequest ) (* healthPb.HealthListResponse , error ) {
45
+ // currently only the ext_proc service is provided
46
+ serviceHealthResponse , err := s .Check (ctx , & healthPb.HealthCheckRequest {Service : extProcPb .ExternalProcessor_ServiceDesc .ServiceName })
47
+ if err != nil {
48
+ return nil , err
49
+ }
50
+
51
+ return & healthPb.HealthListResponse {
52
+ Statuses : map [string ]* healthPb.HealthCheckResponse {
53
+ extProcPb .ExternalProcessor_ServiceDesc .ServiceName : serviceHealthResponse ,
54
+ },
55
+ }, nil
56
+ }
57
+
44
58
func (s * healthServer ) Watch (in * healthPb.HealthCheckRequest , srv healthPb.Health_WatchServer ) error {
45
59
return status .Error (codes .Unimplemented , "Watch is not implemented" )
46
60
}
You can’t perform that action at this time.
0 commit comments