~samwhited/xmpp

ref: 78e129cd01dd95c431c39089c16f40388e6073ba xmpp/stanza.go -rw-r--r-- 533 bytes
78e129cdSam Whited xmpp: Ensure JIDs in tests are pointers 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2015 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 (
	"bitbucket.org/mellium/xmpp/jid"
)

// stanza contains fields common to any any top level XMPP stanza (Presence,
// Message, or IQ).
type stanza struct {
	ID    string   `xml:"id,attr"`
	Inner string   `xml:",innerxml"`
	To    *jid.JID `xml:"to,attr"`
	From  *jid.JID `xml:"from,attr"`
	Lang  string   `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"`
}