forked from jshiffer/go-xmpp

* 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
13 lines
325 B
Go
13 lines
325 B
Go
package xmpp
|
|
|
|
// PresenceShow is a Enum of presence element show
|
|
type PresenceShow string
|
|
|
|
// RFC 6120: part of A.5 Client Namespace and A.6 Server Namespace
|
|
const (
|
|
PresenceShowAway PresenceShow = "away"
|
|
PresenceShowChat PresenceShow = "chat"
|
|
PresenceShowDND PresenceShow = "dnd"
|
|
PresenceShowXA PresenceShow = "xa"
|
|
)
|