controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abort

func Abort(c *gin.Context, code int, msg string)

Abort render an error page

func Captcha

func Captcha(c *gin.Context)

Captcha ...

func Err

func Err(c *gin.Context, err error, msg ...string)

Err returns error of an API.

func ErrForbidden

func ErrForbidden(c *gin.Context)

ErrForbidden render a forbid page

func ErrNotFound

func ErrNotFound(c *gin.Context)

ErrNotFound render a not found page

func ErrServer

func ErrServer(c *gin.Context)

ErrServer render a server error page

func Forbidden

func Forbidden(c *gin.Context)

func Home

func Home(c *gin.Context)

Home ...

func Identity

func Identity(c *gin.Context) (*models.Identity, error)

Identity returns an identity.

func InternalServerError

func InternalServerError(c *gin.Context)

func Login

func Login(c *gin.Context)

Login ...

func Logout

func Logout(c *gin.Context)

Logout ...

func NotFound

func NotFound(c *gin.Context)

func OK

func OK(c *gin.Context, data ...interface{})

OK returns success of an API.

func PasswordChange

func PasswordChange(c *gin.Context)

func PasswordReset

func PasswordReset(c *gin.Context)

func Redirect

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

Redirect redirect to new location

func Render

func Render(c *gin.Context, name string, data ...gin.H)

Render render view pages

func UserAdd

func UserAdd(c *gin.Context)

func UserDelete

func UserDelete(c *gin.Context)

func UserEdit

func UserEdit(c *gin.Context)

func UserIndex

func UserIndex(c *gin.Context)

func UserQuery

func UserQuery(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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