Only on readiness probes we check this service external dependencies
(ctx context.Context, r *pb.StatuszRequest)
| 42 | |
| 43 | // Only on readiness probes we check this service external dependencies |
| 44 | func (s *StatusService) Statusz(ctx context.Context, r *pb.StatuszRequest) (*pb.StatuszResponse, error) { |
| 45 | if r.Readiness { |
| 46 | if ok, err := s.casClient.IsReady(ctx); err != nil || !ok { |
| 47 | return nil, errors.ServiceUnavailable("CAS_NOT_READY", err.Error()) |
| 48 | } |
| 49 | } |
| 50 | return &pb.StatuszResponse{}, nil |
| 51 | } |
| 52 | |
| 53 | func (s *StatusService) Infoz(_ context.Context, _ *pb.InfozRequest) (*pb.InfozResponse, error) { |
| 54 | return &pb.InfozResponse{ |