package ocamlformat-rpc-lib

  1. Overview
  2. Docs

Module Ocamlformat_rpc_libSource

Sourcemodule type Command_S = sig ... end
Sourcemodule type Client_S = sig ... end
Sourcemodule type V = sig ... end
Sourcemodule Init : Command_S with type t = [ `Halt | `Unknown | `Version of string ]

Version used to set the protocol version

Sourcemodule V1 : V with type Command.t = [ `Halt | `Unknown | `Error of string | `Config of (string * string) list | `Format of string ]
Sourcetype client = [
  1. | `V1 of V1.Client.t
]
Sourceval pick_client : pid:int -> in_channel -> out_channel -> string list -> (client, [ `Msg of string ]) result

pick_client ~pid in out versions returns the most-fitting client according to a list of versions, that is a list ordered from the most to the least wished version.

Sourceval pid : client -> int
Sourceval halt : client -> (unit, [> `Msg of string ]) result
Sourceval config : (string * string) list -> client -> (unit, [> `Msg of string ]) result
Sourceval format : string -> client -> (string, [> `Msg of string ]) result
OCaml

Innovation. Community. Security.