middleware

package
v0.0.0-...-a131ce6 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 16 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 New

func (*Middleware) Authenticate

func (mid *Middleware) Authenticate(next http.Handler) http.Handler

func (*Middleware) EnableCORS

func (mid *Middleware) EnableCORS(next http.Handler) http.Handler

func (*Middleware) Metrics

func (mid *Middleware) Metrics(next http.Handler) http.Handler

func (*Middleware) RateLimit

func (mid *Middleware) RateLimit(next http.Handler) http.Handler

func (*Middleware) RecoverPanic

func (mid *Middleware) RecoverPanic(next http.Handler) http.Handler

func (*Middleware) RequireActivatedUser

func (mid *Middleware) RequireActivatedUser(next http.Handler) http.Handler

RequireActivatedUser checks if a user is both authenticated and activated.

func (*Middleware) RequireAuthenticatedUser

func (mid *Middleware) RequireAuthenticatedUser(next http.Handler) http.Handler

RequireAuthenticatedUser checks that a user is not anonymous.

Jump to

Keyboard shortcuts

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