package rpc

  1. Overview
  2. Docs

Parameters

Signature

type implementation = server_implementation
type ('a, 'b) comp = ('a, 'b) Result.result M.lwt
type rpcfn = Rpc.call -> Rpc.response Lwt.t
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.