middleware

package
v0.0.0-...-e36e409 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlgorithmHS256 = "HS256"
	JwtKey         = "access-token"
)

Variables

This section is empty.

Functions

func AuthRole

func AuthRole(targetRole string) echo.MiddlewareFunc

func AuthRoom

func AuthRoom() echo.MiddlewareFunc

func Authorized

func Authorized() echo.MiddlewareFunc

func DbContext

func DbContext(db *gorm.DB) echo.MiddlewareFunc

func Jwt

func Jwt() echo.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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