@@ -49,12 +49,10 @@ action. This error is mainly used when calling `update-guest-configuration`.
49
49
<p >The interface doesn't highlight this difference in the type itself as that's uniquely a consumer issue.</p >
50
50
<h4 ><a name =" guest_configuration " ></a ><code >record guest-configuration</code ></h4 >
51
51
<p >Configuration includes a required list of channels the guest is subscribing to, and an
52
- optional list of extensions key-value pairs (e.g., partitions/offsets to read from in
53
- Kafka/EventHubs, QoS etc.).</p >
52
+ optional list of extensions key-value pairs</p >
54
53
<h5 >Record Fields</h5 >
55
54
<ul >
56
55
<li ><a name =" guest_configuration.channels " ></a ><code >channels</code >: list< ; <a href =" #channel " ><a href =" #channel " ><code >channel</code ></a ></a >> ; </li >
57
- <li ><a name =" guest_configuration.extensions " ></a ><code >extensions</code >: option< ; list< ; (<code >string</code >, <code >string</code >)> ;> ; </li >
58
56
</ul >
59
57
<h4 ><a name =" message " ></a ><code >resource message</code ></h4 >
60
58
<h2 >A message with a binary payload and additional information</h2 >
@@ -90,6 +88,13 @@ Kafka/EventHubs, QoS etc.).</p>
90
88
<ul >
91
89
<li ><a name =" method_message.topic.0 " ></a > <a href =" #channel " ><a href =" #channel " ><code >channel</code ></a ></a ></li >
92
90
</ul >
91
+ <h4 ><a name =" method_message.set_topic " ></a ><code >[method]message.set-topic: func</code ></h4 >
92
+ <p >Set the topic/subject/channel this message should be sent on</p >
93
+ <h5 >Params</h5 >
94
+ <ul >
95
+ <li ><a name =" method_message.set_topic.self " ></a ><code >self</code >: borrow< ; <a href =" #message " ><a href =" #message " ><code >message</code ></a ></a >> ; </li >
96
+ <li ><a name =" method_message.set_topic.topic " ></a ><code >topic</code >: <a href =" #channel " ><a href =" #channel " ><code >channel</code ></a ></a ></li >
97
+ </ul >
93
98
<h4 ><a name =" method_message.content_type " ></a ><code >[method]message.content-type: func</code ></h4 >
94
99
<p >An optional content-type describing the format of the data in the message. This is
95
100
sometimes described as the " ; format" ; type</p >
@@ -101,6 +106,14 @@ sometimes described as the "format" type</p>
101
106
<ul >
102
107
<li ><a name =" method_message.content_type.0 " ></a > option< ; <code >string</code >> ; </li >
103
108
</ul >
109
+ <h4 ><a name =" method_message.set_content_type " ></a ><code >[method]message.set-content-type: func</code ></h4 >
110
+ <p >Set the content-type describing the format of the data in the message. This is
111
+ sometimes described as the " ; format" ; type</p >
112
+ <h5 >Params</h5 >
113
+ <ul >
114
+ <li ><a name =" method_message.set_content_type.self " ></a ><code >self</code >: borrow< ; <a href =" #message " ><a href =" #message " ><code >message</code ></a ></a >> ; </li >
115
+ <li ><a name =" method_message.set_content_type.content_type " ></a ><code >content-type</code >: <code >string</code ></li >
116
+ </ul >
104
117
<h4 ><a name =" method_message.data " ></a ><code >[method]message.data: func</code ></h4 >
105
118
<p >An opaque blob of data</p >
106
119
<h5 >Params</h5 >
@@ -111,6 +124,13 @@ sometimes described as the "format" type</p>
111
124
<ul >
112
125
<li ><a name =" method_message.data.0 " ></a > list< ; <code >u8</code >> ; </li >
113
126
</ul >
127
+ <h4 ><a name =" method_message.set_data " ></a ><code >[method]message.set-data: func</code ></h4 >
128
+ <p >Set the opaque blob of data for this message, discarding the old value</p >
129
+ <h5 >Params</h5 >
130
+ <ul >
131
+ <li ><a name =" method_message.set_data.self " ></a ><code >self</code >: borrow< ; <a href =" #message " ><a href =" #message " ><code >message</code ></a ></a >> ; </li >
132
+ <li ><a name =" method_message.set_data.data " ></a ><code >data</code >: list< ; <code >u8</code >> ; </li >
133
+ </ul >
114
134
<h4 ><a name =" method_message.metadata " ></a ><code >[method]message.metadata: func</code ></h4 >
115
135
<p >Optional metadata (also called headers or attributes in some systems) attached to the
116
136
message</p >
@@ -122,6 +142,14 @@ message</p>
122
142
<ul >
123
143
<li ><a name =" method_message.metadata.0 " ></a > option< ; list< ; (<code >string</code >, <code >string</code >)> ;> ; </li >
124
144
</ul >
145
+ <h4 ><a name =" method_message.add_metadata " ></a ><code >[method]message.add-metadata: func</code ></h4 >
146
+ <p >Add a new key-value pair to the metadata, overwriting any existing value for the same key</p >
147
+ <h5 >Params</h5 >
148
+ <ul >
149
+ <li ><a name =" method_message.add_metadata.self " ></a ><code >self</code >: borrow< ; <a href =" #message " ><a href =" #message " ><code >message</code ></a ></a >> ; </li >
150
+ <li ><a name =" method_message.add_metadata.key " ></a ><code >key</code >: <code >string</code ></li >
151
+ <li ><a name =" method_message.add_metadata.value " ></a ><code >value</code >: <code >string</code ></li >
152
+ </ul >
125
153
<h4 ><a name =" method_message.complete " ></a ><code >[method]message.complete: func</code ></h4 >
126
154
<p >Completes/acks the message</p >
127
155
<p >A message can exist under several statuses:
0 commit comments