middlewares

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth added in v0.5.0

func Auth(verifier Verifier) echo.MiddlewareFunc

func NRConnect

func NRConnect(app *newrelic.Application) echo.MiddlewareFunc

func RequestLog added in v0.7.0

func RequestLog() echo.MiddlewareFunc

func SetBlogAPIContextToContext

func SetBlogAPIContextToContext(requestType blogapicontext.RequestType) echo.MiddlewareFunc

func SetLoggerToContext

func SetLoggerToContext(app *newrelic.Application) echo.MiddlewareFunc

Types

type JWTContextKey added in v0.5.0

type JWTContextKey struct{}

type Verifier added in v0.5.0

type Verifier interface {
	// Verify verifies the token and returns the claims.
	Verify(ctx context.Context, token string) (jwt.Token, error)
}

Verifier is an interface for verifying JWT tokens.

Jump to

Keyboard shortcuts

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