middlewares

package
v3.39.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

Auth is a middleware that checks if the user is logged in. if token is empty, set user to guest

func AuthAdmin

func AuthAdmin(c *gin.Context)

func AuthNotGuest added in v3.39.0

func AuthNotGuest(c *gin.Context)

func Authn added in v3.26.0

func Authn(c *gin.Context)

func Down

func Down(c *gin.Context)

func ForceHttps added in v3.19.0

func ForceHttps(c *gin.Context)

func FsUp added in v3.5.1

func FsUp(c *gin.Context)

func MaxAllowed added in v3.7.1

func MaxAllowed(n int) gin.HandlerFunc

func SearchIndex added in v3.6.0

func SearchIndex(c *gin.Context)

func StoragesLoaded

func StoragesLoaded(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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