package amqp-client
Amqp client base library
Install
Dune Dependency
Authors
Maintainers
Sources
2.2.1.tar.gz
md5=43f4394e55aae5a051222a904b950da6
sha512=3037d5b4c5e1a833b2f6dd5fe96f44a88e71f8d75778f48e1c68665cc45785e07b63725c54be0af9b5cf296e35e9bf88e094620fc2ed2d5c21bd08936dc9ab27
doc/src/amqp-client.lib/types.ml.html
Source file types.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
(** Basic Amqp types *) exception Connection_closed exception Channel_closed of int exception Channel_not_found of int exception Unknown_frame_type of int exception No_handler_found exception Consumer_cancelled of string exception Busy type class_id = int type method_id = int type message_id = class_id * method_id type bit = bool and octet = int and short = int and long = int and longlong = int and shortstr = string and longstr = string and timestamp = int and decimal = { digits : int; value: int } and table = (string * value) list and array = value list and value = | VBoolean of bool | VShortshort of int | VShort of int | VLong of int | VLonglong of int | VShortstr of string (* Not accepted by rabbitmq *) | VLongstr of string | VFloat of float | VDouble of float | VDecimal of decimal | VTable of table | VArray of value list | VTimestamp of int | VUnit of unit type header = string * value let rec print_type indent t = let open Printf in match t with | VTable t -> let indent' = indent ^ " " in printf "[\n"; List.iter (fun (k, v) -> printf "%s%s: " indent' k; print_type (indent') v; printf "\n") t; printf "%s]" indent; | VBoolean v -> printf "%b" v | VShortshort v | VShort v | VLong v | VTimestamp v | VLonglong v -> printf "%d" v | VShortstr v | VLongstr v -> printf "%s" v | VFloat v | VDouble v-> printf "%f" v | VDecimal v -> printf "%f" (float v.value /. float v.digits) | VArray a -> let indent' = indent ^ " " in printf "[\n"; List.iter (fun v -> printf "%s" indent'; print_type (indent') v; printf "\n") a; printf "%s]" indent; | VUnit _ -> printf "\n"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>