Documentation ¶
Index ¶
- func Area(area string, f func())
- func RegisterController(c controller.IController)
- func RegisterDELETE(route string, actionFunc any, params ...string)
- func RegisterGET(route string, actionFunc any, params ...string)
- func RegisterMiddleware(m middleware.IMiddleware)
- func RegisterPOST(route string, actionFunc any, params ...string)
- func RegisterPUT(route string, actionFunc any, params ...string)
- func RegisterRoutes(routes []Route)
- func Run(params ...string)
- func UseApiResponse()
- func UseCors()
- func UseStaticFiles()
- func UseWebApi()
- type Module
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterController ¶
func RegisterController(c controller.IController)
RegisterController 自动注册控制器下的所有Action方法
func RegisterDELETE ¶
RegisterDELETE 注册单个Api
func RegisterGET ¶
RegisterGET 注册单个Api
func RegisterMiddleware ¶
func RegisterMiddleware(m middleware.IMiddleware)
func RegisterPOST ¶
RegisterPOST 注册单个Api
func RegisterPUT ¶
RegisterPUT 注册单个Api
Types ¶
type Module ¶
type Module struct { }
func (Module) DependsModule ¶
func (module Module) DependsModule() []modules.FarseerModule
func (Module) Initialize ¶
func (module Module) Initialize()
func (Module) PostInitialize ¶
func (module Module) PostInitialize()
func (Module) PreInitialize ¶
func (module Module) PreInitialize()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.