middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const IdentityKey = "id"

IdentityKey is a ...

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired(c *gin.Context)

AuthRequired is a middleware to check the session

func Login

func Login(c *gin.Context)

Login is a ...

func Logout

func Logout(c *gin.Context)

Logout is a ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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