middleware

package
v0.0.0-...-d537b8a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors() echo.MiddlewareFunc

Cors 跨域中间件

func CurrentUser

func CurrentUser(h echo.HandlerFunc) echo.HandlerFunc

CurrentUser 获取登录用户

func Session

func Session(secret string) echo.MiddlewareFunc

Session 初始化session

func UserAuth

func UserAuth(c echo.Context) bool

UserAuth 登录状态验证

Types

This section is empty.

Jump to

Keyboard shortcuts

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