Skip to content

Commit a89238d

Browse files
committed
Add generated files for list endpoint tests
1 parent d6e43e9 commit a89238d

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

packages/grpc-health-check/test/generated/grpc/health/v1/Health.ts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import type * as grpc from '@grpc/grpc-js'
44
import type { MethodDefinition } from '@grpc/proto-loader'
55
import type { HealthCheckRequest as _grpc_health_v1_HealthCheckRequest, HealthCheckRequest__Output as _grpc_health_v1_HealthCheckRequest__Output } from '../../../grpc/health/v1/HealthCheckRequest';
66
import type { HealthCheckResponse as _grpc_health_v1_HealthCheckResponse, HealthCheckResponse__Output as _grpc_health_v1_HealthCheckResponse__Output } from '../../../grpc/health/v1/HealthCheckResponse';
7+
import type { HealthListRequest as _grpc_health_v1_HealthListRequest, HealthListRequest__Output as _grpc_health_v1_HealthListRequest__Output } from '../../../grpc/health/v1/HealthListRequest';
8+
import type { HealthListResponse as _grpc_health_v1_HealthListResponse, HealthListResponse__Output as _grpc_health_v1_HealthListResponse__Output } from '../../../grpc/health/v1/HealthListResponse';
79

810
/**
911
* Health is gRPC's mechanism for checking whether a server is able to handle
@@ -42,6 +44,41 @@ export interface HealthClient extends grpc.Client {
4244
check(argument: _grpc_health_v1_HealthCheckRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_health_v1_HealthCheckResponse__Output>): grpc.ClientUnaryCall;
4345
check(argument: _grpc_health_v1_HealthCheckRequest, callback: grpc.requestCallback<_grpc_health_v1_HealthCheckResponse__Output>): grpc.ClientUnaryCall;
4446

47+
/**
48+
* List provides a non-atomic snapshot of the health of all the available
49+
* services.
50+
*
51+
* The server may respond with a RESOURCE_EXHAUSTED error if too many services
52+
* exist.
53+
*
54+
* Clients should set a deadline when calling List, and can declare the server
55+
* unhealthy if they do not receive a timely response.
56+
*
57+
* Clients should keep in mind that the list of health services exposed by an
58+
* application can change over the lifetime of the process.
59+
*/
60+
List(argument: _grpc_health_v1_HealthListRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
61+
List(argument: _grpc_health_v1_HealthListRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
62+
List(argument: _grpc_health_v1_HealthListRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
63+
List(argument: _grpc_health_v1_HealthListRequest, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
64+
/**
65+
* List provides a non-atomic snapshot of the health of all the available
66+
* services.
67+
*
68+
* The server may respond with a RESOURCE_EXHAUSTED error if too many services
69+
* exist.
70+
*
71+
* Clients should set a deadline when calling List, and can declare the server
72+
* unhealthy if they do not receive a timely response.
73+
*
74+
* Clients should keep in mind that the list of health services exposed by an
75+
* application can change over the lifetime of the process.
76+
*/
77+
list(argument: _grpc_health_v1_HealthListRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
78+
list(argument: _grpc_health_v1_HealthListRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
79+
list(argument: _grpc_health_v1_HealthListRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
80+
list(argument: _grpc_health_v1_HealthListRequest, callback: grpc.requestCallback<_grpc_health_v1_HealthListResponse__Output>): grpc.ClientUnaryCall;
81+
4582
/**
4683
* Performs a watch for the serving status of the requested service.
4784
* The server will immediately send back a message indicating the current
@@ -102,6 +139,21 @@ export interface HealthHandlers extends grpc.UntypedServiceImplementation {
102139
*/
103140
Check: grpc.handleUnaryCall<_grpc_health_v1_HealthCheckRequest__Output, _grpc_health_v1_HealthCheckResponse>;
104141

142+
/**
143+
* List provides a non-atomic snapshot of the health of all the available
144+
* services.
145+
*
146+
* The server may respond with a RESOURCE_EXHAUSTED error if too many services
147+
* exist.
148+
*
149+
* Clients should set a deadline when calling List, and can declare the server
150+
* unhealthy if they do not receive a timely response.
151+
*
152+
* Clients should keep in mind that the list of health services exposed by an
153+
* application can change over the lifetime of the process.
154+
*/
155+
List: grpc.handleUnaryCall<_grpc_health_v1_HealthListRequest__Output, _grpc_health_v1_HealthListResponse>;
156+
105157
/**
106158
* Performs a watch for the serving status of the requested service.
107159
* The server will immediately send back a message indicating the current
@@ -125,5 +177,6 @@ export interface HealthHandlers extends grpc.UntypedServiceImplementation {
125177

126178
export interface HealthDefinition extends grpc.ServiceDefinition {
127179
Check: MethodDefinition<_grpc_health_v1_HealthCheckRequest, _grpc_health_v1_HealthCheckResponse, _grpc_health_v1_HealthCheckRequest__Output, _grpc_health_v1_HealthCheckResponse__Output>
180+
List: MethodDefinition<_grpc_health_v1_HealthListRequest, _grpc_health_v1_HealthListResponse, _grpc_health_v1_HealthListRequest__Output, _grpc_health_v1_HealthListResponse__Output>
128181
Watch: MethodDefinition<_grpc_health_v1_HealthCheckRequest, _grpc_health_v1_HealthCheckResponse, _grpc_health_v1_HealthCheckRequest__Output, _grpc_health_v1_HealthCheckResponse__Output>
129182
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Original file: proto/health/v1/health.proto
2+
3+
4+
export interface HealthListRequest {
5+
}
6+
7+
export interface HealthListRequest__Output {
8+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Original file: proto/health/v1/health.proto
2+
3+
import type { HealthCheckResponse as _grpc_health_v1_HealthCheckResponse, HealthCheckResponse__Output as _grpc_health_v1_HealthCheckResponse__Output } from '../../../grpc/health/v1/HealthCheckResponse';
4+
5+
export interface HealthListResponse {
6+
/**
7+
* statuses contains all the services and their respective status.
8+
*/
9+
'statuses'?: ({[key: string]: _grpc_health_v1_HealthCheckResponse});
10+
}
11+
12+
export interface HealthListResponse__Output {
13+
/**
14+
* statuses contains all the services and their respective status.
15+
*/
16+
'statuses': ({[key: string]: _grpc_health_v1_HealthCheckResponse__Output});
17+
}

packages/grpc-health-check/test/generated/health.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export interface ProtoGrpcType {
1919
Health: SubtypeConstructor<typeof grpc.Client, _grpc_health_v1_HealthClient> & { service: _grpc_health_v1_HealthDefinition }
2020
HealthCheckRequest: MessageTypeDefinition
2121
HealthCheckResponse: MessageTypeDefinition
22+
HealthListRequest: MessageTypeDefinition
23+
HealthListResponse: MessageTypeDefinition
2224
}
2325
}
2426
}

0 commit comments

Comments
 (0)