~samwhited/xmpp

ref: 00fe2d17ffb3376ac68ef60e66db4fc290b7fc0d xmpp/stanza.go -rw-r--r-- 409 bytes
00fe2d17Sam Whited Add missing import 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package xmpp

import (
	"encoding/xml"

	"bitbucket.org/mellium/xmpp/jid"
)

// A stanza represents any top level XMPP stanza (Presence, Message, or IQ)
type Stanza struct {
	Id      string          `xml:"id,attr"`
	Inner   string          `xml:",innerxml"`
	To      jid.EnforcedJID `xml:"to,attr"`
	From    jid.EnforcedJID `xml:"from,attr"`
	Lang    string          `xml:"xml:lang,attr"`
	XmlName xml.Name
}