equal
deleted
inserted
replaced
13 "io" |
13 "io" |
14 "os" |
14 "os" |
15 "regexp" |
15 "regexp" |
16 "strings" |
16 "strings" |
17 "xml" |
17 "xml" |
18 ) |
|
19 |
|
20 const ( |
|
21 // Version of RFC 3920 that we implement. |
|
22 Version = "1.0" |
|
23 nsStreams = "urn:ietf:params:xml:ns:xmpp-streams" |
|
24 nsStream = "http://etherx.jabber.org/streams" |
|
25 nsTLS = "urn:ietf:params:xml:ns:xmpp-tls" |
|
26 ) |
18 ) |
27 |
19 |
28 // JID represents an entity that can communicate with other |
20 // JID represents an entity that can communicate with other |
29 // entities. It looks like node@domain/resource. Node and resource are |
21 // entities. It looks like node@domain/resource. Node and resource are |
30 // sometimes optional. |
22 // sometimes optional. |
65 Text string `xml:"chardata"` |
57 Text string `xml:"chardata"` |
66 } |
58 } |
67 var _ xml.Marshaler = &errText{} |
59 var _ xml.Marshaler = &errText{} |
68 |
60 |
69 type Features struct { |
61 type Features struct { |
70 Starttls starttls |
62 Starttls *starttls |
71 Mechanisms mechs |
63 Mechanisms mechs |
72 } |
64 } |
73 |
65 |
74 type starttls struct { |
66 type starttls struct { |
|
67 XMLName xml.Name |
75 required *string |
68 required *string |
76 } |
69 } |
77 |
70 |
78 type mechs struct { |
71 type mechs struct { |
79 Mechanism []string |
72 Mechanism []string |