middlewares

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: AGPL-3.0 Imports: 14 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 Down

func Down(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