structs.go
changeset 108 8ec06aff386e
parent 107 3a01bd8e3f8c
child 110 7696e6a01709
equal deleted inserted replaced
107:3a01bd8e3f8c 108:8ec06aff386e
    72 }
    72 }
    73 
    73 
    74 type auth struct {
    74 type auth struct {
    75 	XMLName   xml.Name
    75 	XMLName   xml.Name
    76 	Chardata  string `xml:",chardata"`
    76 	Chardata  string `xml:",chardata"`
    77 	Mechanism string `xml:"mechanism,attr"`
    77 	Mechanism string `xml:"mechanism,attr,omitempty"`
    78 	Any       *Generic
    78 	Any       *Generic
    79 }
    79 }
    80 
    80 
    81 // One of the three core XMPP stanza types: iq, message, presence. See
    81 // One of the three core XMPP stanza types: iq, message, presence. See
    82 // RFC3920, section 9.
    82 // RFC3920, section 9.