Documentation ¶
Index ¶
- func Failure(c *gin.Context, errCode int, errMsg string)
- func FailureWithHTTPStatus(c *gin.Context, httpStatus, errCode int, errMsg string)
- func NewRouter(serviceRunMode string, profile bool) *gin.Engine
- func Run(ctx context.Context, router http.Handler, servicePort string, ...) error
- func Success(c *gin.Context, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailureWithHTTPStatus ¶
FailureWithhttpStatus 返回指定http状态码的失败响应.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.