MCPcopy Create free account
hub / github.com/cortexproject/cortex / Check

Method Check

pkg/ring/client/pool_test.go:24–29  ·  view source on GitHub ↗
(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

22}
23
24func (i mockClient) Check(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error) {
25 if !i.happy {
26 return nil, fmt.Errorf("Fail")
27 }
28 return &grpc_health_v1.HealthCheckResponse{Status: i.status}, nil
29}
30
31func (i mockClient) Close() error {
32 return nil

Callers 1

healthCheckFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected