insomnia/packages/insomnia-app/app/common/grpc-events.js

18 lines
451 B
JavaScript
Raw Normal View History

// @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 = {
data: 'GRPC_DATA',
error: 'GRPC_ERROR',
end: 'GRPC_END',
};
export type GrpcResponseEvent = $Values<typeof GrpcResponseEventEnum>;