Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIErrorFromCode ¶
func APIOkWithData ¶
func APIOkWithData(c *fiber.Ctx, data interface{}) error
Types ¶
type APIResponseError ¶
type APIResponseError struct { OK bool `json:"ok"` Code int64 `json:"code"` Message string `json:"message"` }
func NewErrorResponse ¶
func NewErrorResponse(code int64, msg string) *APIResponseError
type APIResponseOK ¶
type APIResponseOK struct { OK bool `json:"ok"` Data interface{} `json:"data,omitempty"` }
func NewSuccessResponse ¶
func NewSuccessResponse(data interface{}) *APIResponseOK
Click to show internal directories.
Click to hide internal directories.