middleware

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 12 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() gin.HandlerFunc

ApiStat returns a middleware that records user access statistics data

func NewApiStatHandler added in v0.4.0

func NewApiStatHandler() handler.GinHandler

NewApiStatHandler create an instance of the apiStatHandler middleware

func NewAuthHandler

func NewAuthHandler(logger log.Logger, perm string) handler.GinHandler

NewAuthHandler create an instance of the authHandler middleware

func NewPrivateAccessHandler

func NewPrivateAccessHandler(logger log.Logger) handler.GinHandler

NewPrivateAccessHandler create an instance of the privateAccessHandler middleware

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