middlewares

package
v3.35.3-8Mi Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

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 Authn

func Authn(c *gin.Context)

func Down

func Down(c *gin.Context)

func ForceHttps

func ForceHttps(c *gin.Context)

func FsUp

func FsUp(c *gin.Context)

func MaxAllowed

func MaxAllowed(n int) gin.HandlerFunc

func SearchIndex

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