Versions in this module Expand all Collapse all v1 v1.1.0 Sep 26, 2021 v1.0.0 Sep 20, 2021 Changes in this version + const ErrorTypeClient + const ErrorTypeInternal + const ErrorTypeNone + func ChainError(message string, err error) error + type BasicResponse struct + Success bool + func NewSuccessResponse() (int, BasicResponse) + type CustomError struct + Type int + func ClientError(message string) CustomError + func InternalError() CustomError + func NoError() CustomError + type DataResponse struct + Data interface{} + Success bool + func NewSuccessDataResponse(data interface{}) (int, DataResponse) + type ErrorResponse struct + Error string + Success bool + func NewBadRequestResponse(err string) (int, ErrorResponse) + func NewErrorResponse(err string) ErrorResponse + func NewInsufficientPermissionsErrorResponse() (int, ErrorResponse) + func NewInternalServerErrorResponse() (int, ErrorResponse)