insomnia/packages/insomnia-app/app/common/grpc-events.js
2020-12-18 00:38:21 +13:00

20 lines
496 B
JavaScript

// @flow
export const GrpcRequestEventEnum = {
start: 'GRPC_START',
sendMessage: 'GRPC_SEND_MESSAGE',
commit: 'GRPC_COMMIT',
cancel: 'GRPC_CANCEL',
cancelMultiple: 'GRPC_CANCEL_MULTIPLE',
};
export type GrpcRequestEvent = $Values<typeof GrpcRequestEventEnum>;
export const GrpcResponseEventEnum = {
start: 'GRPC_START',
data: 'GRPC_DATA',
error: 'GRPC_ERROR',
end: 'GRPC_END',
status: 'GRPC_STATUS',
};
export type GrpcResponseEvent = $Values<typeof GrpcResponseEventEnum>;