Documentation ¶
Index ¶
- Variables
- func BIND(fn interface{}) SpringWeb.Handler
- func GetSession(ctx SpringWeb.WebContext) sessions.Session
- func RegisterResultHandler(handler ResultHandler)
- func RegisterResultHandlerFunc(handler ResultHandlerFunc)
- type Param
- type ParamType
- type ResultHandler
- type ResultHandlerFunc
- type WebCorsConfig
- type WebSessionConfig
- type WebStaticConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var CorsFilter = defaultCorsFilter
View Source
var SessionFilter = defaultSessionFilter
View Source
var StaticFilter = defaultStaticFilter
View Source
var WebInvoke = defaultWebInvoke
WebInvoke 可自定义的 web 执行函数
Functions ¶
func GetSession ¶
func RegisterResultHandler ¶ added in v0.0.8
func RegisterResultHandler(handler ResultHandler)
func RegisterResultHandlerFunc ¶ added in v0.0.8
func RegisterResultHandlerFunc(handler ResultHandlerFunc)
Types ¶
type ResultHandler ¶ added in v0.0.8
type ResultHandler interface {
Invoke(result []interface{}) []interface{}
}
type ResultHandlerFunc ¶ added in v0.0.8
type ResultHandlerFunc func(result []interface{}) []interface{}
func (ResultHandlerFunc) Invoke ¶ added in v0.0.8
func (f ResultHandlerFunc) Invoke(result []interface{}) []interface{}
type WebCorsConfig ¶
type WebSessionConfig ¶
type WebStaticConfig ¶
type WebStaticConfig struct { Enable bool `value:"${web.server.static.enable:=false}"` //是否启用 Static 静态目录 URLPrefix string `value:"${web.server.static.url_prefix:=/static}"` //url prefix LocalPath string `value:"${web.server.static.local_path:=./static}"` //目录路径 AllowDirectoryIndex bool `value:"${web.server.static.allow_directory_index:=false}"` //是否允许目录索引 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.