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