Versions in this module Expand all Collapse all v0 v0.2.1 Sep 17, 2021 Changes in this version + func Logger() gin.HandlerFunc + func NewGateway(addr string, s1 http.Handler, s2 *grpc.Server) *gateway + func Recovery() gin.HandlerFunc + func ResponseError(c *gin.Context, err error) + func ResponseErrorAndAbort(c *gin.Context, err error) + func ResponseErrorStatusAndAbort(c *gin.Context, status int, err error) + func ResponseJSON(c *gin.Context, data interface{}) + type CommonResponse struct + Data interface{} + ErrCode ErrorCode + ErrMessage string + type ErrorCode int + const FAILED + const InvalidParam + const OK v0.2.0-rc2 Aug 30, 2021