Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGatewayUserID ¶
GetGatewayUserID returns the user ID from the context.
func Middleware ¶ added in v0.3.0
func Middleware() gin.HandlerFunc
Middleware creates a new GatewayCtx middleware.
Types ¶
type GatewayUserInfo ¶
type GatewayUserInfo struct { Sub string `json:"sub" binding:"required"` Email string `json:"email" binding:"required,email"` }
func GetGatewayUserInfo ¶
func GetGatewayUserInfo(ctx *gin.Context) GatewayUserInfo
GetGatewayUserInfo returns the user info from the context.
Click to show internal directories.
Click to hide internal directories.