Versions in this module Expand all Collapse all v0 v0.1.6 Oct 9, 2019 v0.1.5 Oct 9, 2019 Changes in this version + const BusParamConvertError + const BusParamError + const CommonAppError + const CommonPageError + const CommonParamConvertError + const CommonParamError + const CommonSignError + const ReqCommandNoExist + const ReqInterfaceNoExist + const ReqInterfaceNoSupport + const ReqNoAllow + const ReqPathError + const ReqTokenError + const ReqVersionNoExist + const ServiceError + const Success + var ReturnMsg = map[ErrorNo]string + func HandleError(c echo.Context, errcode ErrorNo, errmsg ...string) error + func HandleSuccess(c echo.Context, i ...interface{}) error + func HandleSuccessReq(ctx context.Context, c echo.Context, r *ReqParam, v interface{}) error + func JWT(next echo.HandlerFunc) echo.HandlerFunc + func MetricsFunc(m *metrics2.Metrics) echo.MiddlewareFunc + func NoSign(next echo.HandlerFunc) echo.HandlerFunc + func RPCErr(c echo.Context, err error) error + func TraceHeader(next echo.HandlerFunc) echo.HandlerFunc + func VerifyParam(next echo.HandlerFunc) echo.HandlerFunc + type ErrorNo int64 + func (e ErrorNo) String() string + type ReqParam struct + AppID int + AppKey string + AppSecret string + Code string + Custom string + Data string + Encode bool + IsPage bool + Language string + Message string + Nonce string + Page utils.Page + Remark string + RequestID string + Sign string + SignType string + Timestamp string + func (r *ReqParam) CompareSign() (bool, error) + func (r *ReqParam) CreateSign() (string, error) + func (r *ReqParam) DataDecode(v interface{}) error + func (r *ReqParam) DataEncode(v interface{}) error + func (r *ReqParam) Decode(s string) error + func (r *ReqParam) R(v interface{}) (interface{}, error) + func (r *ReqParam) Validate() error + func (r *ReqParam) ValidateAppSecret() error