middleware

package
v0.0.0-...-0940e79 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

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

func (*Authentication) CheckJWTToken

func (a *Authentication) CheckJWTToken() echo.MiddlewareFunc

func (*Authentication) CheckRedisToken

func (a *Authentication) CheckRedisToken() echo.MiddlewareFunc

func (*Authentication) Init

func (*Authentication) Setup

func (a *Authentication) Setup(ctx context.Context, deps ...gobs.IService) error

type Authorization

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

func (*Authorization) Init

func (*Authorization) Setup

func (a *Authorization) Setup(ctx context.Context, deps ...gobs.IService) error

func (*Authorization) VerifyPermission

func (a *Authorization) VerifyPermission(permissions ...string) echo.MiddlewareFunc

type HTTPErrorHandling

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

func (*HTTPErrorHandling) CatchErr

func (r *HTTPErrorHandling) CatchErr(err error, c echo.Context)

func (*HTTPErrorHandling) Init

func (*HTTPErrorHandling) Setup

func (r *HTTPErrorHandling) Setup(ctx context.Context, deps ...gobs.IService) error

type JWTSecret

type JWTSecret struct {
	Secret string `env:"JWT_SECRET" mapstructure:"JWT_SECRET" envDefault:"mysecretjwt"`
}

type MWLogger

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

func (*MWLogger) Handler

func (l *MWLogger) Handler() echo.MiddlewareFunc

func (*MWLogger) Init

Init implements gobs.IService.

func (*MWLogger) Log

func (*MWLogger) Setup

func (l *MWLogger) Setup(ctx context.Context, deps ...gobs.IService) error

type RateLimit

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

func (*RateLimit) Handler

func (r *RateLimit) Handler(limit float64, burst int, duration time.Duration) echo.MiddlewareFunc

func (*RateLimit) Init

Init implements gobs.IService.

func (*RateLimit) Setup

func (r *RateLimit) Setup(ctx context.Context, deps ...gobs.IService) error

Jump to

Keyboard shortcuts

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