forked from jshiffer/go-xmpp
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
14 lines
359 B
Go
14 lines
359 B
Go
package xmpp
|
|
|
|
// ErrorType is a Enum of error attribute type
|
|
type ErrorType string
|
|
|
|
// RFC 6120: part of A.5 Client Namespace and A.6 Server Namespace
|
|
const (
|
|
ErrorTypeAuth ErrorType = "auth"
|
|
ErrorTypeCancel ErrorType = "cancel"
|
|
ErrorTypeContinue ErrorType = "continue"
|
|
ErrorTypeModify ErrorType = "motify"
|
|
ErrorTypeWait ErrorType = "wait"
|
|
)
|