~samwhited/xmpp

ref: 63e21c13d6c7046cf7ee155cf55acfddf38b6c8e xmpp/stanza.go -rw-r--r-- 549 bytes
63e21c13Sam Whited Add compile time regression tests 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
}