middleware

package
v0.0.0-...-9c09179 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCheck

func AuthCheck(ver string) gin.HandlerFunc

AuthCheck ...

func CSRF

func CSRF(ver string)

CSRF ...

func Error

func Error(ctx *gin.Context, err error)

Error ...

func InstallCheck

func InstallCheck(ver string) gin.HandlerFunc

InstallCheck ...

func PermissionCheck

func PermissionCheck(ver string) gin.HandlerFunc

PermissionCheck ...

func RemoteIP

func RemoteIP(ctx *gin.Context)

RemoteIP ...

func User

func User(ctx *gin.Context) *model.User

User ...

func VisitLog

func VisitLog(ver string) gin.HandlerFunc

VisitLog ...

Types

type CodeMessage

type CodeMessage struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

CodeMessage ...

type Permission

type Permission struct {
	Version string
	Menu    string
}

Permission ...

Jump to

Keyboard shortcuts

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