Documentation ¶
Index ¶
- Variables
- func AutoRouter(app IApp)
- func Initmiddeware()
- func IsSetMiddleware(cm string) bool
- func IsShieldfunc(s string) bool
- func Router(pattern string, app IApp)
- func ServerRun_Http(port string)
- func SetMiddlewareCon(a IApp, f func(w http.ResponseWriter, r *http.Request))
- func SetMiddlewareFunc(cm string, f func(w http.ResponseWriter, r *http.Request))
- func SetShieldfuncs()
- type App
- type Context
- type IApp
- type IContext
Constants ¶
This section is empty.
Variables ¶
Static 静态服务容器1
Functions ¶
func ServerRun_Http ¶
func ServerRun_Http(port string)
func SetMiddlewareCon ¶
func SetMiddlewareCon(a IApp, f func(w http.ResponseWriter, r *http.Request))
控制器绑定
func SetMiddlewareFunc ¶
func SetMiddlewareFunc(cm string, f func(w http.ResponseWriter, r *http.Request))
注册中间件 cm 控制器/方法 func 绑定的中间件方法
Types ¶
type App ¶
type App struct { Data map[string]interface{} //信息数据 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.