package calculon-redis-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type privmsg = Message_t.privmsg = {
  1. source : string;
  2. dest : string;
  3. message : string;
}
type message = Message_t.message
type send = Message_t.send = {
  1. message : message;
}
val write_privmsg : Buffer.t -> privmsg -> unit

Output a JSON value of type privmsg.

val string_of_privmsg : ?len:int -> privmsg -> string

Serialize a value of type privmsg into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type privmsg.

val privmsg_of_string : string -> privmsg

Deserialize JSON data of type privmsg.

val write_message : Buffer.t -> message -> unit

Output a JSON value of type message.

val string_of_message : ?len:int -> message -> string

Serialize a value of type message into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type message.

val message_of_string : string -> message

Deserialize JSON data of type message.

val write_send : Buffer.t -> send -> unit

Output a JSON value of type send.

val string_of_send : ?len:int -> send -> string

Serialize a value of type send into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type send.

val send_of_string : string -> send

Deserialize JSON data of type send.

OCaml

Innovation. Community. Security.