middleware

package
v0.0.0-...-32ffdae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

func NewMiddleware

func NewMiddleware(logger *zap.Logger, routes map[string]*config.Route, db *database.Database) *Middleware

func (*Middleware) Analytics

func (m *Middleware) Analytics(c *gin.Context)

func (*Middleware) Authenticate

func (m *Middleware) Authenticate(c *gin.Context)

func (*Middleware) AuthenticateAdmin

func (m *Middleware) AuthenticateAdmin(c *gin.Context)

func (*Middleware) RateLimit

func (m *Middleware) RateLimit(c *gin.Context)

func (*Middleware) RecoverPanic

func (m *Middleware) RecoverPanic(c *gin.Context)

func (*Middleware) ValidateHeaders

func (m *Middleware) ValidateHeaders(c *gin.Context)

Jump to

Keyboard shortcuts

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