mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-26 12:22:02 -08:00
d9fdff0839
* 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
26 lines
844 B
Go
26 lines
844 B
Go
package xmpp
|
|
|
|
type StanzaType string
|
|
|
|
// RFC 6120: part of A.5 Client Namespace and A.6 Server Namespace
|
|
const (
|
|
IQTypeError StanzaType = "error"
|
|
IQTypeGet StanzaType = "get"
|
|
IQTypeResult StanzaType = "result"
|
|
IQTypeSet StanzaType = "set"
|
|
|
|
MessageTypeChat StanzaType = "chat"
|
|
MessageTypeError StanzaType = "error"
|
|
MessageTypeGroupchat StanzaType = "groupchat"
|
|
MessageTypeHeadline StanzaType = "headline"
|
|
MessageTypeNormal StanzaType = "normal" // Default
|
|
|
|
PresenceTypeError StanzaType = "error"
|
|
PresenceTypeProbe StanzaType = "probe"
|
|
PresenceTypeSubscribe StanzaType = "subscribe"
|
|
PresenceTypeSubscribed StanzaType = "subscribed"
|
|
PresenceTypeUnavailable StanzaType = "unavailable"
|
|
PresenceTypeUnsubscribe StanzaType = "unsubscribe"
|
|
PresenceTypeUnsubscribed StanzaType = "unsubscribed"
|
|
)
|