Documentation
¶
Index ¶
- func BindJSON(c *gin.Context, obj interface{}) error
- func CorsWrapper(corsAllowedOrigins []string) gin.HandlerFunc
- func GetAppContext(c *gin.Context) *system.AppContext
- func GetCurrentUser(c *gin.Context) *model.User
- func SetAppContextWrapper(appContext *system.AppContext) gin.HandlerFunc
- func SetCurrentUser(appContext *system.AppContext) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorsWrapper ¶
func CorsWrapper(corsAllowedOrigins []string) gin.HandlerFunc
CorsWrapper handles preflight requests for allowed origins
func GetAppContext ¶
func GetAppContext(c *gin.Context) *system.AppContext
GetAppContext retrives an AppContext object from the context
func GetCurrentUser ¶
GetCurrentUser returns current authenticated user from context
func SetAppContextWrapper ¶
func SetAppContextWrapper(appContext *system.AppContext) gin.HandlerFunc
SetAppContextWrapper sets an AppContext object to the context
func SetCurrentUser ¶
func SetCurrentUser(appContext *system.AppContext) gin.HandlerFunc
SetCurrentUser sets current authenticated user from authorization header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.