package resp-mirage

  1. Overview
  2. Docs

Parameters

module Data : sig ... end

Signature

include Resp_server.SERVER with type ic = Reader.ic with type oc = Writer.oc with type server = Conduit_mirage.conduit * Conduit_mirage.server with type data = Data.data
type ic = Reader.ic
type oc = Writer.oc
type data = Data.data
val run : server -> ((ic * oc) -> unit Lwt.t) -> unit Lwt.t
module Value : Resp.S with type Reader.ic = ic and type Writer.oc = oc
module Auth = Auth
type client = Reader.ic * Writer.oc
type command = data -> client -> string -> int -> unit Lwt.t
type t
val discard_n : client -> int -> unit Lwt.t
val finish : client -> nargs:int -> int -> unit Lwt.t
val ok : client -> unit Lwt.t
val error : client -> string -> unit Lwt.t
val invalid_arguments : client -> unit Lwt.t
val send : client -> Resp.t -> unit Lwt.t
val recv : client -> Resp.t Lwt.t
val create : ?auth:Auth.t -> ?commands:(string * command) list -> ?default:string -> server -> data -> t
val start : t -> unit Lwt.t
OCaml

Innovation. Community. Security.