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

28 lines
356 B
Protocol Buffer
Raw Normal View History

2018-05-14 00:31:48 -04:00
syntax = "proto3";
package main;
message Msg {
enum MsgKind {
2018-05-14 13:02:47 -04:00
START = 0;
2018-05-14 02:50:55 -04:00
READ_FILE_SYNC = 1;
DATA_RESPONSE = 2;
2018-05-14 17:27:34 -04:00
EXIT = 3;
2018-05-14 00:31:48 -04:00
}
MsgKind kind = 10;
2018-05-14 13:02:47 -04:00
// START
string cwd = 11;
repeated string argv = 12;
2018-05-14 02:50:55 -04:00
// READ_FILE_SYNC
2018-05-14 13:02:47 -04:00
string path = 20;
2018-05-14 02:50:55 -04:00
// DATA_RESPONSE
2018-05-14 13:02:47 -04:00
bytes data = 30;
string error = 31;
2018-05-14 17:27:34 -04:00
// EXIT
int32 code = 40;
2018-05-14 00:31:48 -04:00
}