rpclib
A library to deal with RPCs in OCaml
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Type declarations
type _ typ =
| Basic : 'a basic -> 'a typ |
| DateTime : string typ |
| Base64 : string typ |
| Array : 'a typ -> 'a array typ |
| List : 'a typ -> 'a list typ |
| Dict : 'a basic * 'b typ -> ('a * 'b) list typ |
| Unit : unit typ |
| Option : 'a typ -> 'a option typ |
| Tuple : 'a typ * 'b typ -> ('a * 'b) typ |
| Tuple3 : 'a typ * 'b typ * 'c typ -> ('a * 'b * 'c) typ |
| Tuple4 : 'a typ * 'b typ * 'c typ * 'd typ -> ('a * 'b * 'c * 'd) typ |
| Struct : 'a structure -> 'a typ |
| Variant : 'a variant -> 'a typ |
| Abstract : 'a abstract -> 'a typ |
and 'a structure = {
sname : string; |
fields : 'a boxed_field list; |
version : Version.t option; |
constructor : field_getter -> ( 'a, Rresult.R.msg ) Result.t; |
}
and 'a variant = {
vname : string; |
variants : 'a boxed_tag list; |
vdefault : 'a option; |
vversion : Version.t option; |
vconstructor : string -> tag_getter -> ( 'a, Rresult.R.msg ) Result.t; |
}
and 'a abstract = {
aname : string; |
test_data : 'a list; |
rpc_of : 'a -> t; |
of_rpc : t -> ( 'a, Rresult.R.msg ) Result.t; |
}
val int : int def
val int32 : int32 def
val int64 : int64 def
val bool : bool def
val float : float def
val string : string def
val char : char def
val unit : unit def
val default_types : boxed_def list