Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Params map[string]interface{} ExtraBody interface{} Body []byte Headers interface{} Queries map[string]interface{} }
Context -
type EndPoint ¶
type EndPoint struct { Name string Method string Handler func(ctx *gin.Context) (int, *Response) Group *gin.RouterGroup }
EndPoint -
type Response ¶
type Response struct { Status string `json:"status,omitempty"` // OK, Error, Warning Data interface{} `json:"data,omitempty"` Error string `json:"error,omitempty"` Message string `json:"message,omitempty"` }
Response -
func NewResponseSuccessWithMessage ¶
NewResponseSuccessWithMessage -
Click to show internal directories.
Click to hide internal directories.