2020-11-10 00:30:27 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
export const GrpcRequestEventEnum = {
|
|
|
|
sendUnary: 'GRPC_SEND_UNARY',
|
2020-11-16 22:59:02 +00:00
|
|
|
startClientStream: 'GRPC_START_CLIENT_STREAM',
|
|
|
|
startServerStream: 'GRPC_START_SERVER_STREAM',
|
|
|
|
startBidiStream: 'GRPC_START_BIDI_STREAM',
|
2020-11-10 00:30:27 +00:00
|
|
|
sendMessage: 'GRPC_SEND_MESSAGE',
|
|
|
|
commit: 'GRPC_COMMIT',
|
|
|
|
cancel: 'GRPC_CANCEL',
|
2020-11-16 22:01:50 +00:00
|
|
|
cancelMultiple: 'GRPC_CANCEL_MULTIPLE',
|
2020-11-10 00:30:27 +00:00
|
|
|
};
|
|
|
|
export type GrpcRequestEvent = $Values<typeof GrpcRequestEventEnum>;
|
|
|
|
|
|
|
|
export const GrpcResponseEventEnum = {
|
2020-11-11 22:44:03 +00:00
|
|
|
start: 'GRPC_START',
|
2020-11-10 00:30:27 +00:00
|
|
|
data: 'GRPC_DATA',
|
|
|
|
error: 'GRPC_ERROR',
|
|
|
|
end: 'GRPC_END',
|
2020-11-11 22:44:03 +00:00
|
|
|
status: 'GRPC_STATUS',
|
2020-11-10 00:30:27 +00:00
|
|
|
};
|
|
|
|
export type GrpcResponseEvent = $Values<typeof GrpcResponseEventEnum>;
|