Documentation
¶
Index ¶
- func AppContextMiddleware(appConfig *config.AppConfig, engine engine.ClientInterface, ...) gin.HandlerFunc
- func AuthMiddleware() gin.HandlerFunc
- func AuthV2Middleware() gin.HandlerFunc
- func CallbackTokenMiddleware() gin.HandlerFunc
- func CheckSignatureMiddleware() gin.HandlerFunc
- func CorsMiddleware() gin.HandlerFunc
- func SignatureAuthWithScopes(log *zerolog.Logger) api.MiddlewareFunc
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.
Click to show internal directories.
Click to hide internal directories.