middleware

package
v0.0.0-...-bed3fb8 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSFilter

func CORSFilter() gin.HandlerFunc

CORSFilter cross-origin resource sharing

func CheckAuthInfo

func CheckAuthInfo() gin.HandlerFunc

CheckAuthInfo extract user infos from the JWT token in Cookie, won't abort if not logged in

func CheckOrderTime

func CheckOrderTime() gin.HandlerFunc

func CheckUserTeamTime

func CheckUserTeamTime() gin.HandlerFunc

func RequireAdmin

func RequireAdmin() gin.HandlerFunc

RequireAdmin must be logged in and has admin role

func RequireLogin

func RequireLogin() gin.HandlerFunc

RequireLogin if no token then abort

Types

This section is empty.

Jump to

Keyboard shortcuts

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