middleware

package
v0.0.0-...-29610b7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermission

func CheckPermission(permission string) echo.MiddlewareFunc

func VerifyCache

func VerifyCache() echo.MiddlewareFunc

Types

type GoMiddleware

type GoMiddleware struct {
	// another stuff , may be needed by middleware
	JWTKey []byte
	Apm    *newrelic.Application
	Logger utils.Logrus
}

GoMiddleware represent the data-struct for middleware

func InitMiddleware

func InitMiddleware(cfg *config.Config, apm *newrelic.Application, logger utils.Logrus) *GoMiddleware

InitMiddleware initialize the middleware

func (*GoMiddleware) JWT

func (m *GoMiddleware) JWT(next echo.HandlerFunc) echo.HandlerFunc

JWT will handle the JWT middleware

func (*GoMiddleware) NewRelic

func (m *GoMiddleware) NewRelic(next echo.HandlerFunc) echo.HandlerFunc

func (*GoMiddleware) SENTRY

func (m *GoMiddleware) SENTRY(next echo.HandlerFunc) echo.HandlerFunc

SENTRY will handle the SENTRY middleware

Jump to

Keyboard shortcuts

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