Documentation ¶
Index ¶
- type Controller
- type ControllerFunc
- type RouterRegister
- func (s *RouterRegister) Any(path string, fn ControllerFunc, adminService *service.AdminService)
- func (s *RouterRegister) DELETE(path string, fn ControllerFunc, adminService *service.AdminService)
- func (s *RouterRegister) GET(path string, fn ControllerFunc, adminService *service.AdminService)
- func (s *RouterRegister) OPTIONS(path string)
- func (s *RouterRegister) POST(path string, fn ControllerFunc, adminService *service.AdminService)
- func (s *RouterRegister) PUT(path string, fn ControllerFunc, adminService *service.AdminService)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { AdminCategoryCtrl *admin.AdminCategoryCtrl `ioc:"auto"` AdminTagCtrl *admin.AdminTagCtrl `ioc:"auto"` AdminAuthCtrl *admin.AdminAuthCtrl `ioc:"auto"` AdminArticleCtrl *admin.AdminArticleCtrl `ioc:"auto"` AdminUploadCtrl *admin.AdminUploadCtrl `ioc:"auto"` AdminDictCtrl *admin.AdminDictCtrl `ioc:"auto"` RoleAuthCtrl *admin.RoleCtrl `ioc:"auto"` AdminSkinCtrl *admin.AdminSkinCtrl `ioc:"auto"` SkinCtrl *web.SkinCtrl `ioc:"auto"` IndexCtrl *web.IndexCtrl `ioc:"auto"` AdminService *service.AdminService `ioc:"auto"` Port int `val:"${server.port}"` AdminPrefix string `val:"${server.admin_prefix}"` WebPrefix string `val:"${server.web_prefix}"` APIPrefix string `val:"${server.api_prefix}"` Static string `val:"${server.static}"` HTMLCompress bool `val:"${server.html_compress}"` }
func (*Controller) StartUp ¶
func (c *Controller) StartUp()
type ControllerFunc ¶
type ControllerFunc func(ctx *ctrl.HTTPContext) error
type RouterRegister ¶
type RouterRegister struct {
// contains filtered or unexported fields
}
func (*RouterRegister) Any ¶
func (s *RouterRegister) Any(path string, fn ControllerFunc, adminService *service.AdminService)
func (*RouterRegister) DELETE ¶
func (s *RouterRegister) DELETE(path string, fn ControllerFunc, adminService *service.AdminService)
func (*RouterRegister) GET ¶
func (s *RouterRegister) GET(path string, fn ControllerFunc, adminService *service.AdminService)
func (*RouterRegister) OPTIONS ¶
func (s *RouterRegister) OPTIONS(path string)
func (*RouterRegister) POST ¶
func (s *RouterRegister) POST(path string, fn ControllerFunc, adminService *service.AdminService)
func (*RouterRegister) PUT ¶
func (s *RouterRegister) PUT(path string, fn ControllerFunc, adminService *service.AdminService)
Click to show internal directories.
Click to hide internal directories.