Commit graph

21 commits

Author SHA1 Message Date
Mickael Remond def9629a0b Make it possible to extract unknown iq payload, in field Any 2019-06-24 12:24:45 +02:00
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
2019-06-22 11:13:33 +02:00
Mickael Remond a6cbc0c08f Properly decode an IQ with both a payload and an error 2019-06-19 14:03:42 +02:00
Mickael Remond 24502f7cd7 Expand test 2019-06-19 14:03:42 +02:00
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."
2019-06-19 14:03:42 +02:00
genofire 355401aa84 wrong package import url let it failed 2019-06-18 08:58:39 +02:00
Mickael Remond 322a6594e7
Fix missing entry in payload registry 2019-06-10 12:30:01 +02:00
Mickael Remond 80d8d6d231
Apply namespace fixes from #33 2019-06-05 08:51:21 +02:00
Mickaël Rémond ffcde39ba6
Add test (and refactor them) for PR#15 (#18)
* Add test (and refactor them) for #15
* Update Dockerfile to support Go modules on Codeship
2019-02-10 17:53:18 +01:00
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.
2018-12-26 18:50:01 +01:00
Mickael Remond 266ed9b1e4
Do not marshal 'empty' error elements 2018-01-26 11:16:04 +01:00
Mickael Remond 2cd8eed765
Implement disco#items parsing and marshaling 2018-01-26 09:24:34 +01:00
Mickael Remond 8470c01c09
Implement error parsing 2018-01-20 18:09:13 +01:00
Mickael Remond bbfafbb32c
Clean-up / Consistency 2018-01-18 17:03:54 +01:00
Mickael Remond 993ca630f7
Test and code refactor 2018-01-17 18:47:34 +01:00
Mickael Remond d33490cdc0
Work-in-progress on dynamic IQ parsing 2018-01-16 22:33:21 +01:00
Mickael Remond c821267928
Do not repeat xmlns in attributes on parsing 2018-01-15 12:47:26 +01:00
Mickael Remond dade3504f0
Improve generic IQ parsing 2018-01-15 12:28:34 +01:00
Mickael Remond 10219ec1e6
Refactor parsing / improve typing 2018-01-13 18:50:17 +01:00
Mickael Remond 01063ec284
Refactor attributes name 2018-01-13 17:54:07 +01:00
Mickael Remond 710174b165
Moving XMPP library to Fluux project 2018-01-01 18:12:33 +01:00
Renamed from xmpp/iq_test.go (Browse further)