Documentation ¶
Index ¶
- func BadRequest(ctx *gin.Context, msg M, args ...interface{})
- func Conflict(ctx *gin.Context, msg M, args ...interface{})
- func Created(ctx *gin.Context, msg M, args ...interface{})
- func Forbidden(ctx *gin.Context, msg M, args ...interface{})
- func Gone(ctx *gin.Context, msg M, args ...interface{})
- func MethodNotAllowed(ctx *gin.Context, msg M, args ...interface{})
- func NoContent(ctx *gin.Context, msg M, args ...interface{})
- func NotAcceptable(ctx *gin.Context, msg M, args ...interface{})
- func NotFound(ctx *gin.Context, msg M, args ...interface{})
- func NotFoundOrBadRequestGorm(err error, ctx *gin.Context, msg M, args ...interface{})
- func NotFoundOrBadRequestMongo(err error, ctx *gin.Context, msg M, args ...interface{})
- func Ok(ctx *gin.Context, msg M, args ...interface{})
- func PaymentRequired(ctx *gin.Context, msg M, args ...interface{})
- func ProxyAuthRequired(ctx *gin.Context, msg M, args ...interface{})
- func RequestTimeOut(ctx *gin.Context, msg M, args ...interface{})
- func ToManyRequests(ctx *gin.Context, msg M, args ...interface{})
- func Unauthorized(ctx *gin.Context, msg M, args ...interface{})
- type Data
- type M
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest have 3 args (message,data,extra)
func MethodNotAllowed ¶ added in v0.5.2
MethodNotAllowed have 3 args (message,data,extra)
func NotAcceptable ¶
NotAcceptable have 3 args (message,data,extra)
func PaymentRequired ¶ added in v0.6.0
PaymentRequired have 3 args (message,data,extra)
func ProxyAuthRequired ¶ added in v0.6.0
ProxyAuthRequired have 3 args (message,data,extra)
func RequestTimeOut ¶ added in v0.6.0
RequestTimeOut have 3 args (message,data,extra)
func ToManyRequests ¶ added in v0.6.0
ToManyRequests have 3 args (message,data,extra)
func Unauthorized ¶
Unauthorized have 3 args (message,data,extra)
Types ¶
type Data ¶ added in v0.4.5
type Data struct { Result interface{} `json:"result"` Pagination interface{} `json:"pagination"` }
Click to show internal directories.
Click to hide internal directories.