Exemplo n.º 1
0
func init() {
	info := sapi.PluginInfo{}
	info.Creater = newPlugin
	info.HookPluginServerInit = serverInit
	info.HookPluginRequestInit = requestInit
	info.BasePlugins = []string{"httpparam"}
	sapi.RegisterPlugin("router", info)
}
Exemplo n.º 2
0
Arquivo: app.go Projeto: 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)
}
Exemplo n.º 3
0
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)
}
Exemplo n.º 4
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)
}
Exemplo n.º 5
0
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)
}
Exemplo n.º 6
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)
}