2020-11-10 00:30:27 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
export const GrpcRequestEventEnum = {
|
|
|
|
sendUnary: 'GRPC_SEND_UNARY',
|
|
|
|
startStream: 'GRPC_START_STREAM',
|
|
|
|
sendMessage: 'GRPC_SEND_MESSAGE',
|
|
|
|
commit: 'GRPC_COMMIT',
|
|
|
|
cancel: 'GRPC_CANCEL',
|
|
|
|
};
|
|
|
|
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>;
|