package calculon-redis-lib

  1. Overview
  2. Docs

Module Calculon_redis_lib.Message_jSource

Sourcetype privmsg = Message_t.privmsg = {
  1. source : string;
  2. dest : string;
  3. message : string;
}
Sourcetype send = Message_t.send = {
  1. message : message;
}
Sourceval write_privmsg : Buffer.t -> privmsg -> unit

Output a JSON value of type privmsg.

Sourceval 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.

Sourceval read_privmsg : Yojson.Safe.lexer_state -> Lexing.lexbuf -> privmsg

Input JSON data of type privmsg.

Sourceval privmsg_of_string : string -> privmsg

Deserialize JSON data of type privmsg.

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

Output a JSON value of type message.

Sourceval 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.

Sourceval read_message : Yojson.Safe.lexer_state -> Lexing.lexbuf -> message

Input JSON data of type message.

Sourceval message_of_string : string -> message

Deserialize JSON data of type message.

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

Output a JSON value of type send.

Sourceval 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.

Sourceval read_send : Yojson.Safe.lexer_state -> Lexing.lexbuf -> send

Input JSON data of type send.

Sourceval send_of_string : string -> send

Deserialize JSON data of type send.

OCaml

Innovation. Community. Security.