Versions in this module Expand all Collapse all v0 v0.2.0 Oct 13, 2022 Changes in this version + var ErrEmptyBody = errors.New("body must not be empty") + func DecodeJson(body io.Reader, o interface{}) error + func EncodeJson(w io.Writer, err error) error + func EncodeJsonStatus(w io.Writer, message string, statusCode int, o interface{}) error + type QueueError struct + Err error + func (e *QueueError) Delay() time.Duration + func (e *QueueError) Error() string + type QueueName string + const DeleteEntityQueue + type RateLimitError struct + Err error + func (e *RateLimitError) Delay() time.Duration + func (e *RateLimitError) Error() string + type Response struct + StatusCode int + func (res Response) Render(w http.ResponseWriter, r *http.Request) error + type ServerResponse struct + Data json.RawMessage + Message string + Status bool + func NewErrorResponse(msg string, statusCode int) ServerResponse + func NewServerResponse(msg string, object interface{}, statusCode int) ServerResponse + func NewServiceErrResponse(err error) ServerResponse + type ServiceError struct + func NewServiceError(errCode int, errMsg error) *ServiceError + func (s *ServiceError) ErrCode() int + func (s *ServiceError) Error() string + type TaskName string + const DeleteEntityTask