summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2010-05-23 23:11:06 +1200
committerTony Garnock-Jones <tonyg@lshift.net>2010-05-23 23:11:06 +1200
commit19891d34f4f9a4adcde5b7516c9dfd181228b930 (patch)
tree61a52b9351b22c262d0b1cbaf991cdf66acfa857
parentaa784084953c938fe5c85f8d8a99d7afd28a44d2 (diff)
downloadrabbitmq-codegen-bug21763.tar.gz
More documentation.bug21763
-rw-r--r--README.extensions.md30
1 files changed, 28 insertions, 2 deletions
diff --git a/README.extensions.md b/README.extensions.md
index 33f0301..3a067ba 100644
--- a/README.extensions.md
+++ b/README.extensions.md
@@ -23,7 +23,7 @@ Written in the style of a
ConstantDefinition = {
"name": string(),
- "value": anything(),
+ "value": number(),
"class": optional(_or("soft-error", "hard-error"))
};
@@ -37,7 +37,8 @@ Written in the style of a
"name": string(),
"id": number(),
"arguments": array_of(FieldDefinition),
- "synchronous": optional(boolean())
+ "synchronous": optional(boolean()),
+ "content": optional(boolean())
};
ClassDefinition = {
@@ -60,6 +61,31 @@ Written in the style of a
Within a `FieldDefinition`, the keyword `domain` can be used instead
of `type`, but `type` is preferred and `domain` is deprecated.
+Type names can either be a defined `domain` name or a built-in name
+from the following list:
+
+ - octet
+ - shortstr
+ - longstr
+ - short
+ - long
+ - longlong
+ - bit
+ - table
+ - timestamp
+
+Method and class IDs must be integers between 0 and 65535,
+inclusive. Note that there is no specific subset of the space reserved
+for experimental or site-local extensions, so be careful not to
+conflict with IDs used by the AMQP core specification.
+
+If the `synchronous` field of a `MethodDefinition` is missing, it is
+assumed to be `false`; the same applies to the `content` field.
+
+A `ConstantDefinition` with a `class` attribute is considered to be an
+error-code definition; otherwise, it is considered to be a
+straightforward numeric constant.
+
## Extensions
Written in the style of a