1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/src/msg.fbs

105 lines
1.4 KiB
Text
Raw Normal View History

2018-07-04 14:50:28 -04:00
namespace deno;
union Any {
Start,
StartRes,
CodeFetch,
CodeFetchRes,
CodeCache,
Exit,
TimerStart,
TimerReady,
TimerClear,
FetchReq,
FetchRes,
ReadFileSync,
ReadFileSyncRes,
WriteFileSync,
2018-07-04 14:50:28 -04:00
}
table Base {
2018-08-17 16:59:57 -04:00
cmd_id: uint32;
error: string;
msg: Any;
2018-07-04 14:50:28 -04:00
}
table Start {
unused: int8;
}
table StartRes {
cwd: string;
argv: [string];
debug_flag: bool;
}
table CodeFetch {
module_specifier: string;
containing_file: string;
}
table CodeFetchRes {
// If it's a non-http module, moduleName and filename will be the same.
// For http modules, moduleName is its resolved http URL, and filename
// is the location of the locally downloaded source code.
module_name: string;
filename: string;
source_code: string;
output_code: string; // Non-empty only if cached.
}
table CodeCache {
filename: string;
source_code: string;
output_code: string;
}
table Exit {
code: int;
}
table TimerStart {
id: uint;
interval: bool;
delay: uint;
}
table TimerReady {
id: uint;
done: bool;
}
table TimerClear {
id: uint;
}
table FetchReq {
id: uint;
url: string;
// header_line: [string];
}
table FetchRes {
id: uint;
status: int;
header_line: [string];
2018-08-13 15:02:35 -04:00
body: [ubyte];
}
table ReadFileSync {
filename: string;
}
table ReadFileSyncRes {
2018-08-13 15:02:35 -04:00
data: [ubyte];
}
table WriteFileSync {
filename: string;
2018-08-13 15:02:35 -04:00
data: [ubyte];
perm: uint;
// perm specified by https://godoc.org/os#FileMode
}
root_type Base;