middleware

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiStat added in v0.4.0

func ApiStat(reporter report.Reporter) gin.HandlerFunc

ApiStat returns a middleware that records user access statistics data

func NewAuthHandlerFunc added in v0.4.4

func NewAuthHandlerFunc(logger *logger.Logger, perm string) gin.HandlerFunc

NewAuthHandlerFunc returns a middleware that checks whether the user is sign in

func NewPrivateAccessHandlerFunc added in v0.4.4

func NewPrivateAccessHandlerFunc(logger *logger.Logger) gin.HandlerFunc

NewPrivateAccessHandlerFunc returns a middleware that only allows to access http resource from loop back ip or private ip

func NoRoute

func NoRoute(context *gin.Context)

NoRoute the middleware of the 404 status

Types

This section is empty.

Jump to

Keyboard shortcuts

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