mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
18 lines
451 B
JavaScript
18 lines
451 B
JavaScript
|
// @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>;
|