2019-06-26 15:14:52 +00:00
|
|
|
package stanza
|
2016-01-06 15:51:12 +00:00
|
|
|
|
2019-10-18 18:29:54 +00:00
|
|
|
import "encoding/xml"
|
|
|
|
|
|
|
|
// Start of stream
|
|
|
|
// Reference: XMPP Core stream open
|
|
|
|
// https://tools.ietf.org/html/rfc6120#section-4.2
|
|
|
|
type Stream struct {
|
|
|
|
XMLName xml.Name `xml:"http://etherx.jabber.org/streams stream"`
|
|
|
|
From string `xml:"from,attr"`
|
2019-11-28 16:15:15 +00:00
|
|
|
To string `xml:"to,attr"`
|
2019-10-18 18:29:54 +00:00
|
|
|
Id string `xml:"id,attr"`
|
|
|
|
Version string `xml:"version,attr"`
|
2018-01-13 17:50:17 +00:00
|
|
|
}
|
2019-12-23 08:04:18 +00:00
|
|
|
|
|
|
|
const StreamClose = "</stream:stream>"
|