示例#1
0
func init() {
	info := sapi.PluginInfo{}
	info.Creater = newPlugin
	info.HookPluginRequestInit = requestInit
	(&info).Support(sapi.IdHttp, sapi.IdWebsocket)
	sapi.RegisterPlugin("cookie", info)
}
示例#2
0
文件: router.go 项目: Rickykurt/wgf
func init() {
	info := sapi.PluginInfo{}
	info.Creater = newPlugin
	info.HookPluginServerInit = serverInit
	info.HookPluginRequestInit = requestInit
	info.BasePlugins = []string{"httpparam"}
	sapi.RegisterPlugin("router", info)
}
示例#3
0
文件: app.go 项目: Rickykurt/wgf
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
0
文件: app.go 项目: hermanschaaf/wgf
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
0
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
0
文件: session.go 项目: Rickykurt/wgf
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
0
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
0
文件: view.go 项目: Rickykurt/wgf
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
0
文件: view.go 项目: hermanschaaf/wgf
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
0
文件: cookie.go 项目: Rickykurt/wgf
func init() {
	info := sapi.PluginInfo{}
	info.Creater = newPlugin
	info.HookPluginRequestInit = requestInit
	sapi.RegisterPlugin("cookie", info)
}
示例#11
0
func init() {
	info := sapi.PluginInfo{}
	info.Creater = newParam
	info.HookPluginRequestInit = requestInit
	sapi.RegisterPlugin("httpparam", info)
}