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

23 lines
648 B
JavaScript
Raw Normal View History

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