Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientErrorResponse ¶
type ClientErrorResponse struct { StatusCode int `json:"statusCode"` Error localErrs.Err `json:"error"` Timestamp time.Time `json:"timestamp"` }
ClientErrorResponse standardizes responses with 400-499 status code
type ServerErrorResponse ¶
type ServerErrorResponse struct { StatusCode int `json:"statusCode"` Error localErrs.Err `json:"error"` Timestamp time.Time `json:"timestamp"` }
ServerErrorResponse standardizes responses with 500-599 status code
type SuccessfulResponse ¶
type SuccessfulResponse struct { Data interface{} `json:"data"` Timestamp time.Time `json:"timestamp"` }
SuccessfulResponse standardizes responses with 200-299 status code
Click to show internal directories.
Click to hide internal directories.