本文整理汇总了Golang中wgf/sapi.PluginInfo类的典型用法代码示例。如果您正苦于以下问题:Golang PluginInfo类的具体用法?Golang PluginInfo怎么用?Golang PluginInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PluginInfo类的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)
}
开发者ID:hermanschaaf,项目名称:wgf,代码行数:7,代码来源:cookie.go
示例2: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newPlugin
info.HookPluginServerInit = serverInit
info.HookPluginRequestInit = requestInit
info.BasePlugins = []string{"httpparam"}
sapi.RegisterPlugin("router", info)
}
开发者ID:Rickykurt,项目名称:wgf,代码行数:8,代码来源:router.go
示例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)
}
开发者ID:Rickykurt,项目名称:wgf,代码行数:8,代码来源:app.go
示例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)
}
开发者ID:hermanschaaf,项目名称:wgf,代码行数:9,代码来源:app.go
示例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)
}
开发者ID:hermanschaaf,项目名称:wgf,代码行数:9,代码来源:router.go
示例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)
}
开发者ID:Rickykurt,项目名称:wgf,代码行数:9,代码来源:session.go
示例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)
}
开发者ID:hermanschaaf,项目名称:wgf,代码行数:10,代码来源:session.go
示例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)
}
开发者ID:Rickykurt,项目名称:wgf,代码行数:13,代码来源:view.go
示例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)
}
开发者ID:hermanschaaf,项目名称:wgf,代码行数:15,代码来源:view.go
示例10: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newPlugin
info.HookPluginRequestInit = requestInit
sapi.RegisterPlugin("cookie", info)
}
开发者ID:Rickykurt,项目名称:wgf,代码行数:6,代码来源:cookie.go
示例11: init
func init() {
info := sapi.PluginInfo{}
info.Creater = newParam
info.HookPluginRequestInit = requestInit
sapi.RegisterPlugin("httpparam", info)
}
开发者ID:Rickykurt,项目名称:wgf,代码行数:6,代码来源:httpparam.go
注:本文中的wgf/sapi.PluginInfo类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论