package resp-server

  1. Overview
  2. Docs

Module Resp_server.MakeSource

Parameters

module Server : SERVER
module Auth : AUTH
module Value : Resp.S with type Reader.ic = Server.ic and type Writer.oc = Server.oc

Signature

include SERVER with type server = Server.server with type ic = Server.ic with type oc = Server.oc with type data = Server.data
type ic = Server.ic
type oc = Server.oc
type server = Server.server
type data = Server.data
val run : server -> ((ic * oc) -> unit Lwt.t) -> unit Lwt.t
module Value = Value
module Auth = Auth
Sourcetype client = ic * oc
Sourcetype command = data -> client -> string -> int -> unit Lwt.t
Sourcetype t
Sourceval discard_n : client -> int -> unit Lwt.t
Sourceval finish : client -> nargs:int -> int -> unit Lwt.t
Sourceval ok : client -> unit Lwt.t
Sourceval error : client -> string -> unit Lwt.t
Sourceval invalid_arguments : client -> unit Lwt.t
Sourceval send : client -> Resp.t -> unit Lwt.t
Sourceval recv : client -> Resp.t Lwt.t
Sourceval create : ?auth:Auth.t -> ?commands:(string * command) list -> ?default:string -> server -> data -> t
Sourceval start : t -> unit Lwt.t