2
0
mirror of https://github.com/FluuxIO/go-xmpp synced 2024-11-05 12:00:50 +00:00
go-xmpp/xmpp/stream.go
2016-01-06 16:51:12 +01:00

23 lines
548 B
Go

package xmpp
import "encoding/xml"
// XMPP Packet Parsing
type streamFeatures struct {
XMLName xml.Name `xml:"http://etherx.jabber.org/streams features"`
StartTLS tlsStartTLS
Caps Caps
Mechanisms saslMechanisms
Bind bindBind
Session sessionSession
Any []xml.Name `xml:",any"`
}
type Caps struct {
XMLName xml.Name `xml:"http://jabber.org/protocol/caps c"`
Hash string `xml:"hash,attr"`
Node string `xml:"node,attr"`
Ver string `xml:"ver,attr"`
Ext string `xml:"ext,attr,omitempty"`
}