middleware

package
v1.0.0-beta.37 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 19 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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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