Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authz ¶
func Authz() gin.HandlerFunc
Authz is a middleware that validates token and authorizes users It takes a gin.Context as an argument and returns a gin.HandlerFunc This function is responsible for validating the token sent by the client in the Authorization header and authorizing the user if the token is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.