package command_rpc

  1. Overview
  2. Docs
include Async.Versioned_rpc.Callee_converts.Rpc.S
type query
type response
val implement_multi : ?log_not_previously_seen_version:(name:string -> int -> unit) -> ('state -> version:int -> query -> response Async_kernel.Deferred.t) -> 'state Async_rpc_kernel.Rpc.Implementation.t list

implement multiple versions at once

val rpcs : unit -> Async_rpc_kernel.Rpc.Any.t list

All rpcs implemented by implement_multi

val versions : unit -> Core_kernel.Int.Set.t

All versions implemented by implement_multi. (useful for computing which old versions may be pruned)

val name : string
val query_of_sexp : Async.Sexp.t -> query
val sexp_of_response : response -> Async.Sexp.t
val implementation : Invocation.t -> query -> response Async.Deferred.t
OCaml

Innovation. Community. Security.