controllers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryController

type CategoryController struct {
	// contains filtered or unexported fields
}

func NewCategoryController

func NewCategoryController(r *gin.Engine) *CategoryController

func (*CategoryController) Add

func (c *CategoryController) Add(ctx *gin.Context)

func (*CategoryController) Delete

func (c *CategoryController) Delete(ctx *gin.Context)

func (*CategoryController) Edit

func (c *CategoryController) Edit(ctx *gin.Context)

func (CategoryController) JSON added in v1.0.2

func (c CategoryController) JSON(ctx *gin.Context, success bool, msg interface{}, resp ...interface{})

func (CategoryController) Redirect added in v1.0.2

func (c CategoryController) Redirect(ctx *gin.Context, location string)

func (CategoryController) V added in v1.0.2

func (c CategoryController) V(ctx *gin.Context) *views.View

func (*CategoryController) View

func (c *CategoryController) View(ctx *gin.Context)

type CategoryForm

type CategoryForm struct {
	Name string `form:"name" binding:"required"`
}

type DocController

type DocController struct {
	// contains filtered or unexported fields
}

func NewDocController

func NewDocController(r *gin.Engine) *DocController

func (*DocController) Add

func (d *DocController) Add(c *gin.Context)

func (*DocController) Delete

func (d *DocController) Delete(c *gin.Context)

func (*DocController) Edit

func (d *DocController) Edit(c *gin.Context)

func (DocController) JSON added in v1.0.2

func (c DocController) JSON(ctx *gin.Context, success bool, msg interface{}, resp ...interface{})

func (DocController) Redirect added in v1.0.2

func (c DocController) Redirect(ctx *gin.Context, location string)

func (DocController) V added in v1.0.2

func (c DocController) V(ctx *gin.Context) *views.View

func (*DocController) View

func (d *DocController) View(c *gin.Context)

type DocForm

type DocForm struct {
	Title    string `form:"title" binding:"required"`
	Label    string `form:"label"`
	Markdown string `form:"markdown" binding:"required"`
}

type HomeController

type HomeController struct {
	// contains filtered or unexported fields
}

func NewHomeController

func NewHomeController(r *gin.Engine) *HomeController

func (*HomeController) Captcha

func (h *HomeController) Captcha(c *gin.Context)

func (*HomeController) Index

func (h *HomeController) Index(c *gin.Context)

func (*HomeController) InternalServerError

func (h *HomeController) InternalServerError(c *gin.Context)

func (HomeController) JSON added in v1.0.2

func (c HomeController) JSON(ctx *gin.Context, success bool, msg interface{}, resp ...interface{})

func (*HomeController) Login

func (h *HomeController) Login(c *gin.Context)

func (*HomeController) Logout

func (h *HomeController) Logout(c *gin.Context)

func (*HomeController) NotFound

func (h *HomeController) NotFound(c *gin.Context)

func (HomeController) Redirect added in v1.0.2

func (c HomeController) Redirect(ctx *gin.Context, location string)

func (HomeController) V added in v1.0.2

func (c HomeController) V(ctx *gin.Context) *views.View

type LoginForm

type LoginForm struct {
	Account  string `form:"account" binding:"required"`
	Password string `form:"password" binding:"required"`
	Captcha  string `form:"captcha" binding:"required"`
}

type PasswordForm

type PasswordForm struct {
	Password       string `form:"password" binding:"required"`
	PasswordRepeat string `form:"password_repeat" binding:"required"`
}

type ProjectController

type ProjectController struct {
	// contains filtered or unexported fields
}

func NewProjectController

func NewProjectController(r *gin.Engine) *ProjectController

func (*ProjectController) Add

func (p *ProjectController) Add(c *gin.Context)

func (*ProjectController) Delete

func (p *ProjectController) Delete(c *gin.Context)

func (*ProjectController) Edit

func (p *ProjectController) Edit(c *gin.Context)

func (ProjectController) JSON added in v1.0.2

func (c ProjectController) JSON(ctx *gin.Context, success bool, msg interface{}, resp ...interface{})

func (ProjectController) Redirect added in v1.0.2

func (c ProjectController) Redirect(ctx *gin.Context, location string)

func (ProjectController) V added in v1.0.2

func (c ProjectController) V(ctx *gin.Context) *views.View

func (*ProjectController) View

func (p *ProjectController) View(c *gin.Context)

type ProjectForm

type ProjectForm struct {
	Name        string `form:"name" binding:"required"`
	Description string `form:"description" binding:"required"`
}

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func NewUserController

func NewUserController(r *gin.Engine) *UserController

func (*UserController) Add

func (u *UserController) Add(c *gin.Context)

func (*UserController) Delete

func (u *UserController) Delete(c *gin.Context)

func (*UserController) Edit

func (u *UserController) Edit(c *gin.Context)

func (*UserController) Index

func (u *UserController) Index(c *gin.Context)

func (UserController) JSON added in v1.0.2

func (c UserController) JSON(ctx *gin.Context, success bool, msg interface{}, resp ...interface{})

func (*UserController) Password

func (u *UserController) Password(c *gin.Context)

func (UserController) Redirect added in v1.0.2

func (c UserController) Redirect(ctx *gin.Context, location string)

func (*UserController) Reset

func (u *UserController) Reset(c *gin.Context)

func (UserController) V added in v1.0.2

func (c UserController) V(ctx *gin.Context) *views.View

type UserForm

type UserForm struct {
	Name  string `form:"name" binding:"required"`
	Email string `form:"email" binding:"required"`
	Role  int    `form:"role" binding:"required"`
}

Jump to

Keyboard shortcuts

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