func init() { info := sapi.PluginInfo{} info.Creater = newPlugin info.HookPluginServerInit = serverInit info.HookPluginRequestInit = requestInit info.BasePlugins = []string{"httpparam"} sapi.RegisterPlugin("router", info) }
func init() { info := sapi.PluginInfo{} info.Creater = newAppHook info.HookPluginServerInit = appServerInit info.HookPluginRequestInit = appRequestInit info.BasePlugins = []string{"session", "view", "router"} sapi.RegisterPlugin("_app", info) }
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) }
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) }
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) }
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) }