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
Click to show internal directories.
Click to hide internal directories.