本文整理匯總了Golang中github.com/ermine/bullxmpp/xmlencoder.AddExtension函數的典型用法代碼示例。如果您正苦於以下問題:Golang AddExtension函數的具體用法?Golang AddExtension怎麽用?Golang AddExtension使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了AddExtension函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "mechanisms"}, Mechanisms{}, true, false)
xmlencoder.AddExtension(xml.Name{NS, "auth"}, Auth{}, false, true)
xmlencoder.AddExtension(xml.Name{NS, "success"}, Success{}, true, false)
xmlencoder.AddExtension(xml.Name{NS, "challenge"}, Challenge{}, true, false)
xmlencoder.AddExtension(xml.Name{NS, "response"}, Response{}, false, true)
xmlencoder.AddExtension(xml.Name{NS, "failure"}, Failure{}, true, false)
}
示例2: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "stream"}, Start{}, true, true)
xmlencoder.AddExtension(xml.Name{NS, "features"}, Features{}, true, true)
xmlencoder.AddExtension(xml.Name{NS, "error"}, Error{}, true, true)
}
示例3: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "error"}, Error{}, true, true)
}
示例4: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "starttls"}, Starttls{}, true, true)
xmlencoder.AddExtension(xml.Name{NS, "proceed"}, Proceed{}, true, false)
xmlencoder.AddExtension(xml.Name{NS, "failure"}, Failure{}, true, false)
}
示例5: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "x"}, X{}, true, true)
}
示例6: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "iq"}, Iq{}, true, true)
xmlencoder.AddExtension(xml.Name{NS, "presence"}, Presence{}, true, true)
xmlencoder.AddExtension(xml.Name{NS, "message"}, Message{}, true, true)
}
示例7: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "vCard"}, Vcard{}, true, true)
}
示例8: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "mood"}, Mood{}, true, true)
}
示例9: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "captcha"}, Captcha{}, true, true)
}
示例10: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "bind"}, Bind{}, true, true)
}
示例11: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "query"}, Privacy{}, true, true)
}
示例12: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "query"}, Configure{}, true, true)
}
示例13: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "time"}, Time{}, true, true)
}
示例14: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "ping"}, Ping{}, true, true)
}
示例15: init
func init() {
xmlencoder.AddExtension(xml.Name{NS, "session"}, Session{}, true, true)
}