middleware

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppContextMiddleware

func AppContextMiddleware(appConfig *config.AppConfig, engine engine.ClientInterface, logger zerolog.Logger) gin.HandlerFunc

AppContextMiddleware is a middleware that sets the appConfig, engine and logger in the request context

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

AuthMiddleware will check the request for the xPub or AccessKey header

func AuthV2Middleware

func AuthV2Middleware() gin.HandlerFunc

AuthV2Middleware will check the request for the xPub and convert it to the user context.

func CallbackTokenMiddleware

func CallbackTokenMiddleware() gin.HandlerFunc

CallbackTokenMiddleware verifies the callback token - if it's valid and matches the Bearer scheme.

func CheckSignatureMiddleware

func CheckSignatureMiddleware() gin.HandlerFunc

CheckSignatureMiddleware is a middleware that checks the signature of the request (if required)

func CorsMiddleware

func CorsMiddleware() gin.HandlerFunc

CorsMiddleware is a middleware that handles CORS.

func SignatureAuthWithScopes

func SignatureAuthWithScopes(log *zerolog.Logger) api.MiddlewareFunc

SignatureAuthWithScopes checks for scopes and runs auth&signature middlewares

Types

This section is empty.

Jump to

Keyboard shortcuts

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