controller

package
v0.0.0-...-69154b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Render

func (s *Controller) Render(w io.Writer, name string, data interface{}, c echo.Context) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL