structs.go
changeset 107 3a01bd8e3f8c
parent 105 aa895dfae3f6
child 108 8ec06aff386e
equal deleted inserted replaced
106:ffb9d27fea79 107:3a01bd8e3f8c
    66 	XMLName  xml.Name
    66 	XMLName  xml.Name
    67 	Required *string
    67 	Required *string
    68 }
    68 }
    69 
    69 
    70 type mechs struct {
    70 type mechs struct {
    71 	Mechanism []string
    71 	Mechanism []string `xml:"urn:ietf:params:xml:ns:xmpp-sasl mechanism"`
    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:"attr"`
    77 	Mechanism string `xml:"mechanism,attr"`
    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.