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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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