Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPagingParameters ¶
GetPagingParameters - Find query params limit and offset
Types ¶
type ErrorReponse ¶
type ErrorReponse struct { Message string `json:"message"` ErrorCode int `json:"errorCode"` MoreInfo string `json:"moreInfo"` }
ErrorReponse - Estructure representing error
func GenerateErrorResponse ¶
func GenerateErrorResponse(message, moreInfo string, errorCode int) ErrorReponse
GenerateErrorResponse - Made a error response
type SuccessResponse ¶
type SuccessResponse struct { Meta meta `json:"meta"` Records interface{} `json:"records"` }
SuccessResponse - Estructure representing success
func GenerateSuccessResponse ¶
func GenerateSuccessResponse(obj interface{}, limit, offset, recordCount int) SuccessResponse
GenerateSuccessResponse - Made a success response
Click to show internal directories.
Click to hide internal directories.