~samwhited/xmpp

ref: 8fb8d7def0c62a960ae1a0d95fa49646f303aedd xmpp/stanza.go -rw-r--r-- 549 bytes
8fb8d7deSam Whited Make Bare() part of the JID interface 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2014 Sam Whited.
// Use of this source code is governed by the BSD 2-clause license that can be
// found in the LICENSE file.

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
}