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.
2018-02-14 18:49:26 +01:00
|
|
|
package xmpp
|
2018-02-13 20:05:18 +01:00
|
|
|
|
|
|
|
import "encoding/xml"
|
|
|
|
|
2018-02-22 03:12:07 +01:00
|
|
|
// Text implements RFC 6120 - part of A.2 Stream Error Namespace, A.4 SASL Namespace and A.8 Stanza Error Namespace
|
2018-02-13 20:05:18 +01:00
|
|
|
type Text struct {
|
|
|
|
// `xml:"urn:ietf:params:xml:ns:xmpp-streams text"`
|
|
|
|
// `xml:"urn:ietf:params:xml:ns:xmpp-sasl text"`
|
|
|
|
// `xml:"urn:ietf:params:xml:ns:xmpp-stanzas text"`
|
|
|
|
XMLName xml.Name `xml:"text"`
|
|
|
|
Lang string `xml:"lang,attr,omitempty"`
|
|
|
|
Body string `xml:",innerxml"`
|
|
|
|
}
|
|
|
|
|
2018-02-14 18:49:26 +01:00
|
|
|
// XMLElement is for Unmarshal undefined structs a fallback - any hasn't matched element
|
2018-02-13 20:05:18 +01:00
|
|
|
type XMLElement struct {
|
|
|
|
XMLName xml.Name
|
|
|
|
InnerXML string `xml:",innerxml"`
|
|
|
|
}
|
|
|
|
|
2018-02-14 18:49:26 +01:00
|
|
|
// Delay implements which XEP ?
|
2018-02-13 20:05:18 +01:00
|
|
|
type Delay struct {
|
|
|
|
Stamp string `xml:"stamp,attr"`
|
|
|
|
}
|