本文整理匯總了Golang中wgf/sapi.PluginInfo.HookPluginRequestInit方法的典型用法代碼示例。如果您正苦於以下問題:Golang PluginInfo.HookPluginRequestInit方法的具體用法?Golang PluginInfo.HookPluginRequestInit怎麽用?Golang PluginInfo.HookPluginRequestInit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類wgf/sapi.PluginInfo
的用法示例。
在下文中一共展示了PluginInfo.HookPluginRequestInit方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newPlugin
info.HookPluginRequestInit = requestInit
(&info).Support(sapi.IdHttp, sapi.IdWebsocket)
sapi.RegisterPlugin("cookie", info)
}
示例2: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newPlugin
info.HookPluginServerInit = serverInit
info.HookPluginRequestInit = requestInit
info.BasePlugins = []string{"httpparam"}
sapi.RegisterPlugin("router", info)
}
示例3: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newAppHook
info.HookPluginServerInit = appServerInit
info.HookPluginRequestInit = appRequestInit
info.BasePlugins = []string{"session", "view", "router"}
sapi.RegisterPlugin("_app", info)
}
示例4: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newAppHook
info.HookPluginServerInit = appServerInit
info.HookPluginRequestInit = appRequestInit
info.BasePlugins = []string{"session", "view", "router"}
(&info).Support(sapi.IdHttp, sapi.IdWebsocket)
sapi.RegisterPlugin("_app", info)
}
示例5: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newPlugin
info.HookPluginServerInit = serverInit
info.HookPluginRequestInit = requestInit
info.BasePlugins = []string{"httpparam"}
(&info).Support(sapi.IdHttp, sapi.IdWebsocket)
sapi.RegisterPlugin("router", info)
}
示例6: init
func init() {
sessionMap = make(map[string]map[string]interface{})
info := sapi.PluginInfo{}
info.Creater = sessionCreater
info.HookPluginRequestInit = requestInit
info.BasePlugins = []string{"cookie"}
sapi.RegisterPlugin("session", info)
}
示例7: init
func init() {
sessionMap = make(map[string]map[string]interface{})
info := sapi.PluginInfo{}
info.Creater = sessionCreater
info.HookPluginRequestInit = requestInit
info.BasePlugins = []string{"cookie"}
(&info).Support(sapi.IdHttp, sapi.IdWebsocket)
sapi.RegisterPlugin("session", info)
}
示例8: init
func init() {
viewCacheMap = make(map[string]*viewCache)
viewFuncMap = map[string]interface{}{
"wgfInclude": viewFuncWgfInclude,
}
info := sapi.PluginInfo{}
info.Creater = pluginCreater
info.HookPluginServerInit = serverInit
info.HookPluginRequestInit = requestInit
sapi.RegisterPlugin("view", info)
}
示例9: init
func init() {
viewCacheMap = make(map[string]*viewCache)
viewFuncMap = map[string]interface{}{
"wgfInclude": viewFuncWgfInclude,
"wgfUrl": viewFuncWgfUrl,
}
info := sapi.PluginInfo{}
info.Creater = pluginCreater
info.HookPluginServerInit = serverInit
info.HookPluginRequestInit = requestInit
(&info).Support(sapi.IdHttp, sapi.IdWebsocket)
sapi.RegisterPlugin("view", info)
}
示例10: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newPlugin
info.HookPluginRequestInit = requestInit
sapi.RegisterPlugin("cookie", info)
}
示例11: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newParam
info.HookPluginRequestInit = requestInit
sapi.RegisterPlugin("httpparam", info)
}