genofire
d9fdff0839
Add constants (enumlike) for stanza types and simplify packet creation ( #62 )
...
* Add constants (enumlike) for stanza types
* NewIQ, NewMessage and NewPresence are now initialized with the Attrs struct
* Update examples
* Do not export backoff code. For now, we do not need to expose backoff in the documentation
* Make presence priority an int8
5 years ago
Mickael Remond
a6cbc0c08f
Properly decode an IQ with both a payload and an error
5 years ago
Mickael Remond
af0ae525b8
An IQ can only have a single payload
...
"An IQ stanza of type "get" or "set" MUST contain exactly one
child element, which specifies the semantics of the particular
request."
5 years ago
Mickael Remond
4d015e5b29
With go modules, we should be able to remove import comments
5 years ago
Mickael Remond
b05e68c844
Add router to make it easier to set up routing info
...
- Using the router, the dispatch is not done anymore by receiving from
receive channel, but by registering callback functions in routers,
with matchers.
- Make IQPayload a real interface to make it easier to match namespaces.
- The StreamManager Run command is now blocking, waiting for StreamManager
to terminate.
5 years ago
Mickael Remond
322a6594e7
Fix missing entry in payload registry
5 years ago
Mickael Remond
45cb2e6f34
Add support for Software Version parsing
5 years ago
Mickael Remond
6cdadc95e9
Expose type registry for custom user-defined payload and extensions
5 years ago
Mickael Remond
80d8d6d231
Apply namespace fixes from #33
5 years ago
Mickael Remond
7a4364be95
Refactor / clean up registry
5 years ago
Mickael Remond
836e723273
Refactor / extract the registry
...
Work in progress
5 years ago
Mickael Remond
f74f276a22
Fix me note
5 years ago
Mickael Remond
c7cdf3b5f3
Fix broken imports
5 years ago
Mickael Remond
5eae7f4ef7
Move project to gosrc.io/xmpp
...
The URL will be more permanent as this is a place we dedicate as short URL for our go projects.
5 years ago
Mickael Remond
07b0d2d14d
Cleanup and add test for IOT control set parsing
6 years ago
Mickael Remond
d6bedfb033
Minor cleanup
6 years ago
Mickael Remond
c451e3bc63
Add support for disco info node
6 years ago
Mickael Remond
266ed9b1e4
Do not marshal 'empty' error elements
6 years ago
Mickael Remond
2cd8eed765
Implement disco#items parsing and marshaling
6 years ago
Mickael Remond
ca148e5fe5
Improve code documentation
6 years ago
Mickael Remond
8cb1e1264e
Clean-up
6 years ago
Mickael Remond
57cc0a25ac
Clean-up
6 years ago
Mickael Remond
fb8d050a00
IQ error management
6 years ago
Mickael Remond
8470c01c09
Implement error parsing
6 years ago
Mickael Remond
bbfafbb32c
Clean-up / Consistency
6 years ago
Mickael Remond
993ca630f7
Test and code refactor
6 years ago
Mickael Remond
d33490cdc0
Work-in-progress on dynamic IQ parsing
6 years ago
Mickael Remond
c821267928
Do not repeat xmlns in attributes on parsing
6 years ago
Mickael Remond
dade3504f0
Improve generic IQ parsing
6 years ago
Mickael Remond
94815de173
Makes parsing of inner IQ XML generic
6 years ago
Mickael Remond
e14f58d9a9
Decode query
6 years ago
Mickael Remond
10219ec1e6
Refactor parsing / improve typing
6 years ago
Mickael Remond
01063ec284
Refactor attributes name
6 years ago
Mickael Remond
1ea560ba1e
Fix missing packages and references
6 years ago
Mickael Remond
710174b165
Moving XMPP library to Fluux project
6 years ago