go fmt
This commit is contained in:
parent
2d4531739a
commit
6465ebd169
|
|
@ -5,9 +5,9 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
NSPing = "urn:xmpp:ping"
|
||||
NSPing = "urn:xmpp:ping"
|
||||
)
|
||||
|
||||
type Ping struct {
|
||||
XMLName xml.Name `xml:"urn:xmpp:ping ping"`
|
||||
XMLName xml.Name `xml:"urn:xmpp:ping ping"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import (
|
|||
const (
|
||||
NSRemoteRosterManager = "urn:xmpp:tmp:roster-management:0"
|
||||
|
||||
RemoteRosterManagerTypeRequest = "request"
|
||||
RemoteRosterManagerTypeAllowed = "allowed"
|
||||
RemoteRosterManagerTypeRejected = "rejected"
|
||||
RemoteRosterManagerTypeRequest = "request"
|
||||
RemoteRosterManagerTypeAllowed = "allowed"
|
||||
RemoteRosterManagerTypeRejected = "rejected"
|
||||
)
|
||||
|
||||
// XEP-0321: Remote Roster Manager
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
NSRoster = "jabber:iq:roster"
|
||||
NSRoster = "jabber:iq:roster"
|
||||
|
||||
RosterSubscriptionBoth = "both"
|
||||
RosterSubscriptionFrom = "from"
|
||||
|
|
@ -14,13 +14,13 @@ const (
|
|||
)
|
||||
|
||||
type RosterQuery struct {
|
||||
XMLName xml.Name `xml:"jabber:iq:roster query"`
|
||||
Items []RosterItem `xml:"item"`
|
||||
XMLName xml.Name `xml:"jabber:iq:roster query"`
|
||||
Items []RosterItem `xml:"item"`
|
||||
}
|
||||
|
||||
type RosterItem struct {
|
||||
JID string `xml:"jid,attr"`
|
||||
Name string `xml:"name,attr,omitempty"`
|
||||
Subscription string `xml:"subscription,attr"`
|
||||
Groupes []string `xml:"group"`
|
||||
JID string `xml:"jid,attr"`
|
||||
Name string `xml:"name,attr,omitempty"`
|
||||
Subscription string `xml:"subscription,attr"`
|
||||
Groupes []string `xml:"group"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue