UNPKG

2.89 kBPlain TextView Raw
1import type * as grpc from '../index';
2import type { MessageTypeDefinition } from '@grpc/proto-loader';
3
4import type { ChannelzClient as _grpc_channelz_v1_ChannelzClient, ChannelzDefinition as _grpc_channelz_v1_ChannelzDefinition } from './grpc/channelz/v1/Channelz';
5
6type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
7 new(...args: ConstructorParameters<Constructor>): Subtype;
8};
9
10export interface ProtoGrpcType {
11 google: {
12 protobuf: {
13 Any: MessageTypeDefinition
14 BoolValue: MessageTypeDefinition
15 BytesValue: MessageTypeDefinition
16 DoubleValue: MessageTypeDefinition
17 Duration: MessageTypeDefinition
18 FloatValue: MessageTypeDefinition
19 Int32Value: MessageTypeDefinition
20 Int64Value: MessageTypeDefinition
21 StringValue: MessageTypeDefinition
22 Timestamp: MessageTypeDefinition
23 UInt32Value: MessageTypeDefinition
24 UInt64Value: MessageTypeDefinition
25 }
26 }
27 grpc: {
28 channelz: {
29 v1: {
30 Address: MessageTypeDefinition
31 Channel: MessageTypeDefinition
32 ChannelConnectivityState: MessageTypeDefinition
33 ChannelData: MessageTypeDefinition
34 ChannelRef: MessageTypeDefinition
35 ChannelTrace: MessageTypeDefinition
36 ChannelTraceEvent: MessageTypeDefinition
37 /**
38 * Channelz is a service exposed by gRPC servers that provides detailed debug
39 * information.
40 */
41 Channelz: SubtypeConstructor<typeof grpc.Client, _grpc_channelz_v1_ChannelzClient> & { service: _grpc_channelz_v1_ChannelzDefinition }
42 GetChannelRequest: MessageTypeDefinition
43 GetChannelResponse: MessageTypeDefinition
44 GetServerRequest: MessageTypeDefinition
45 GetServerResponse: MessageTypeDefinition
46 GetServerSocketsRequest: MessageTypeDefinition
47 GetServerSocketsResponse: MessageTypeDefinition
48 GetServersRequest: MessageTypeDefinition
49 GetServersResponse: MessageTypeDefinition
50 GetSocketRequest: MessageTypeDefinition
51 GetSocketResponse: MessageTypeDefinition
52 GetSubchannelRequest: MessageTypeDefinition
53 GetSubchannelResponse: MessageTypeDefinition
54 GetTopChannelsRequest: MessageTypeDefinition
55 GetTopChannelsResponse: MessageTypeDefinition
56 Security: MessageTypeDefinition
57 Server: MessageTypeDefinition
58 ServerData: MessageTypeDefinition
59 ServerRef: MessageTypeDefinition
60 Socket: MessageTypeDefinition
61 SocketData: MessageTypeDefinition
62 SocketOption: MessageTypeDefinition
63 SocketOptionLinger: MessageTypeDefinition
64 SocketOptionTcpInfo: MessageTypeDefinition
65 SocketOptionTimeout: MessageTypeDefinition
66 SocketRef: MessageTypeDefinition
67 Subchannel: MessageTypeDefinition
68 SubchannelRef: MessageTypeDefinition
69 }
70 }
71 }
72}
73