middleware

package
v0.0.0-...-a0869b6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

func HasRole

func HasRole(role string) gin.HandlerFunc

func HasRoles

func HasRoles(roles []string) gin.HandlerFunc

func IsStaff

func IsStaff(c *gin.Context) bool

func Logger

func Logger(c *gin.Context)

func NotGuest

func NotGuest(c *gin.Context)

func UpdateCookie

func UpdateCookie(c *gin.Context)

Make change that updates cookie value (obfuscation), and also updates maxage

Types

This section is empty.

Jump to

Keyboard shortcuts

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