Documentation ¶
Index ¶
- Constants
- func BindJSON(c *gin.Context, obj any) bool
- func BindQuery(c *gin.Context, obj any) bool
- func Error(c *gin.Context, err error) bool
- func GetAuthToken(c *gin.Context) string
- func MwCors() gin.HandlerFunc
- func MwRecovery(lg logger.WarnAndError, handler func(*gin.Context, error)) gin.HandlerFunc
- type St
Constants ¶
View Source
const ( ReadHeaderTimeout = 10 * time.Second ReadTimeout = 2 * time.Minute MaxHeaderBytes = 300 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func GetAuthToken ¶
func MwCors ¶
func MwCors() gin.HandlerFunc
func MwRecovery ¶
func MwRecovery(lg logger.WarnAndError, handler func(*gin.Context, error)) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.