package transom

  1. Overview
  2. Docs
OCaml sidecar glue for Tauri-style desktop apps

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.0.tar.gz
md5=a6aa17a9cab249e390f574553bc22620
sha512=56ac775c6b61fc45488795f2658fcfcbf380427f9477e94d6d69770a6df288851f266fb026d27696ba579caa37386404e4059fa2d2218b23e8b1e5c59cd9994b

doc/transom.runtime/Transom_runtime/Protocol/index.html

Module Transom_runtime.ProtocolSource

Sourcetype id = int
Sourcetype call = {
  1. id : id;
  2. method_ : string;
  3. params : Yojson.Safe.t;
}
Sourcetype cancel = {
  1. id : id;
}
Sourcetype incoming =
  1. | Call of call
  2. | Cancel of cancel
Sourcetype ok = {
  1. id : id;
  2. result : Yojson.Safe.t;
}
Sourcetype err = {
  1. id : id option;
  2. error : Error.t;
}
Sourcetype event = {
  1. id : id;
  2. event : Yojson.Safe.t;
}
Sourcetype outgoing =
  1. | Out_ok of ok
  2. | Out_err of err
  3. | Out_event of event
Sourceval assoc : [> `Assoc of 'a ] -> ('a, string) result
Sourceval int_of_yojson : string -> [> `Int of int | `Intlit of string ] -> (int, string) result
Sourceval id_of_yojson : [> `Int of int | `Intlit of string ] -> (int, string) result
Sourceval id_opt_of_yojson : [> `Int of int | `Intlit of string | `Null ] -> (int option, string) result
Sourceval string_of_yojson : string -> [> `String of 'a ] -> ('a, string) result
Sourceval field : string -> (string * 'a) list -> ('a, string) result
Sourceval optional_id : [> `Assoc of (string * [> `Int of int | `Intlit of string | `Null ]) list ] -> int option
Sourceval incoming_to_yojson : incoming -> [> `Assoc of (string * Yojson.Safe.t) list ]
Sourceval incoming_of_yojson : [> `Assoc of (string * Yojson.Safe.t) list ] -> (incoming, string) result
Sourceval outgoing_to_yojson : outgoing -> [> `Assoc of (string * Yojson.Safe.t) list ]
Sourceval outgoing_of_yojson : [> `Assoc of (string * Yojson.Safe.t) list ] -> (outgoing, string) result