summaryrefslogtreecommitdiff
path: root/cli/msg.fbs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-08-24 15:02:42 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-08-24 06:02:42 -0700
commit79f82cf10ed1dbf91346994250d7311a4d74377a (patch)
treeb00755d666198b9c66264a3c240f849096951e2f /cli/msg.fbs
parent5b2baa5c990fbeae747e952c5dcd7a5369e950b1 (diff)
port ops to JSON: compiler, errors, fetch, files (#2804)
Diffstat (limited to 'cli/msg.fbs')
-rw-r--r--cli/msg.fbs75
1 files changed, 0 insertions, 75 deletions
diff --git a/cli/msg.fbs b/cli/msg.fbs
index 6744a0754..26ff61278 100644
--- a/cli/msg.fbs
+++ b/cli/msg.fbs
@@ -1,23 +1,14 @@
union Any {
Accept,
- ApplySourceMap,
- Cache,
Chdir,
Chmod,
Chown,
- Close,
CopyFile,
CreateWorker,
CreateWorkerRes,
Cwd,
CwdRes,
Dial,
- Fetch,
- FetchSourceFile,
- FetchSourceFileRes,
- FetchRes,
- FormatError,
- FormatErrorRes,
GetRandomValues,
GlobalTimer,
GlobalTimerRes,
@@ -38,8 +29,6 @@ union Any {
NewConn,
Now,
NowRes,
- Open,
- OpenRes,
PermissionRevoke,
Permissions,
PermissionsRes,
@@ -215,33 +204,6 @@ table WorkerPostMessage {
// data passed thru the zero-copy data parameter.
}
-table FetchSourceFile {
- specifier: string;
- referrer: string;
-}
-
-table FetchSourceFileRes {
- // If it's a non-http module, moduleName and filename will be the same.
- // For http modules, module_name is its resolved http URL, and filename
- // is the location of the locally downloaded source code.
- module_name: string;
- filename: string;
- media_type: MediaType;
- data: [ubyte];
-}
-
-table ApplySourceMap {
- filename: string;
- line: int;
- column: int;
-}
-
-table Cache {
- extension: string;
- module_id: string;
- contents: string;
-}
-
table Chdir {
directory: string;
}
@@ -274,29 +236,6 @@ table PermissionsRes {
hrtime: bool;
}
-// Note this represents The WHOLE header of an http message, not just the key
-// value pairs. That means it includes method and url for Requests and status
-// for responses. This is why it is singular "Header" instead of "Headers".
-table HttpHeader {
- is_request: bool;
- // Request only:
- method: string;
- url: string;
- // Response only:
- status: uint16;
- // Both:
- fields: [KeyValue];
-}
-
-table Fetch {
- header: HttpHeader;
-}
-
-table FetchRes {
- header: HttpHeader;
- body_rid: uint32;
-}
-
table MakeTempDir {
dir: string;
prefix: string;
@@ -416,16 +355,6 @@ table Truncate {
len: uint;
}
-table Open {
- filename: string;
- perm: uint;
- mode: string;
-}
-
-table OpenRes {
- rid: uint32;
-}
-
table Read {
rid: uint32;
// (ptr, len) is passed as second parameter to Deno.core.send().
@@ -444,10 +373,6 @@ table WriteRes {
nbyte: uint;
}
-table Close {
- rid: uint32;
-}
-
table Kill {
pid: int32;
signo: int32;