Versions in this module Expand all Collapse all v1 v1.0.0 Oct 29, 2021 Changes in this version + func RecoveryMiddleware() gin.HandlerFunc + func RequestLogger(serName string) gin.HandlerFunc + func ResponseError(c *gin.Context, code ResponseCode, err error) + func ResponseSuccess(c *gin.Context, data interface{}) + func SessionAuthMiddleware() gin.HandlerFunc + func TranslationMiddleware() gin.HandlerFunc + type Response struct + Data interface{} + ErrorCode ResponseCode + ErrorMsg string + Stack interface{} + TraceId interface{} + type ResponseCode int + const CustomizeCode + const InternalErrorCode + const InvalidRequestErrorCode + const SuccessCode + const UndefErrorCode + const ValidErrorCode