middleware

package
v0.0.0-...-0025a43 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Cors

type Cors struct {
}

func NewCorsM

func NewCorsM() *Cors

func (*Cors) Handler

func (m *Cors) Handler() gin.HandlerFunc

type JWTAuth

type JWTAuth struct {
	// contains filtered or unexported fields
}

func NewJWTAuthM

func NewJWTAuthM(
	conf *config.Configuration,
	jwtS *service.JwtService,
) *JWTAuth

func (*JWTAuth) Handler

func (m *JWTAuth) Handler(guardName string) gin.HandlerFunc

type Limiter

type Limiter struct {
	// contains filtered or unexported fields
}

func NewLimiterM

func NewLimiterM(lm *compo.LimiterManager) *Limiter

func (*Limiter) Handler

func (m *Limiter) Handler(key ...string) gin.HandlerFunc

type Recovery

type Recovery struct {
	// contains filtered or unexported fields
}

func NewRecoveryM

func NewRecoveryM(loggerWriter *lumberjack.Logger) *Recovery

func (*Recovery) Handler

func (m *Recovery) Handler() gin.HandlerFunc

Jump to

Keyboard shortcuts

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