mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-05 08:47:05 +02:00
Use req/conn/msg models in unary/server
This commit is contained in:
@@ -12,7 +12,9 @@ export const AUTH_TYPE_BEARER = 'bearer';
|
||||
export type Model =
|
||||
| Settings
|
||||
| Workspace
|
||||
| GrpcConnection
|
||||
| GrpcRequest
|
||||
| GrpcMessage
|
||||
| HttpRequest
|
||||
| HttpResponse
|
||||
| KeyValue
|
||||
@@ -114,6 +116,24 @@ export interface GrpcRequest extends BaseModel {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface GrpcMessage extends BaseModel {
|
||||
readonly workspaceId: string;
|
||||
readonly requestId: string;
|
||||
readonly connectionId: string;
|
||||
readonly model: 'grpc_message';
|
||||
message: string;
|
||||
isServer: boolean;
|
||||
isInfo: boolean;
|
||||
}
|
||||
|
||||
export interface GrpcConnection extends BaseModel {
|
||||
readonly workspaceId: string;
|
||||
readonly requestId: string;
|
||||
readonly model: 'grpc_connection';
|
||||
service: string;
|
||||
method: string;
|
||||
}
|
||||
|
||||
export interface HttpRequest extends BaseModel {
|
||||
readonly workspaceId: string;
|
||||
readonly model: 'http_request';
|
||||
|
||||
Reference in New Issue
Block a user