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 NotFoundOrBadRequest(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
- type Serialize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest have 3 args (message,data,extra)
func MethodNotAllowed ¶
MethodNotAllowed have 3 args (message,data,extra)
func NotAcceptable ¶
NotAcceptable have 3 args (message,data,extra)
func NotFoundOrBadRequest ¶ added in v1.0.1
func PaymentRequired ¶
PaymentRequired have 3 args (message,data,extra)
func ProxyAuthRequired ¶
ProxyAuthRequired have 3 args (message,data,extra)
func RequestTimeOut ¶
RequestTimeOut have 3 args (message,data,extra)
func ToManyRequests ¶
ToManyRequests have 3 args (message,data,extra)
func Unauthorized ¶
Unauthorized have 3 args (message,data,extra)
Types ¶
type Data ¶
type Data struct { Result interface{} `json:"result"` Pagination interface{} `json:"pagination,omitempty"` }
type Response ¶
type Serialize ¶ added in v1.0.2
type Serialize struct {
// contains filtered or unexported fields
}
func NewSerialize ¶ added in v1.0.4
Click to show internal directories.
Click to hide internal directories.