package rpc

  1. Overview
  2. Docs

Parameters

Signature

val funcs : (string, Rpc.call -> Rpc.response Deferred.t) Hashtbl.t
type implementation = server_implementation
val description : Idl.Interface.description option Pervasives.ref
type ('a, 'b) comp = ('a, 'b) Result.result M.async
type funcs = (string, rpcfn) Hashtbl.t
type 'a res = 'a -> unit
type _ fn =
  1. | Function : 'a Idl.Param.t * 'b fn -> ('a -> 'b) fn
  2. | Returning : ('a Idl.Param.t * 'b Idl.Error.t) -> ('a, 'b) M.t fn
val returning : 'a Idl.Param.t -> 'b Idl.Error.t -> ('a, 'b) M.t fn
val (@->) : 'a Idl.Param.t -> 'b fn -> ('a -> 'b) fn
val empty : unit -> funcs
val declare : string -> string list -> 'a fn -> 'a res
OCaml

Innovation. Community. Security.