sum7
/
yaja
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
yaja/messages/error.go

21 lines
458 B
Go
Raw Normal View History

2017-12-14 21:30:07 +01:00
package messages
import "encoding/xml"
2018-02-10 13:34:42 +01:00
type StreamError struct {
XMLName xml.Name `xml:"http://etherx.jabber.org/streams error"`
2018-02-11 11:15:11 +01:00
Text string `xml:"urn:ietf:params:xml:ns:xmpp-streams text"`
2018-02-10 13:34:42 +01:00
Any xml.Name `xml:",any"`
}
// ErrorClient element
type ErrorClient struct {
2017-12-14 21:30:07 +01:00
XMLName xml.Name `xml:"jabber:client error"`
Code string `xml:"code,attr"`
Type string `xml:"type,attr"`
Text string `xml:"text"`
2018-02-10 13:34:42 +01:00
Any xml.Name `xml:",any"`
2017-12-14 21:30:07 +01:00
}