Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorFromResponse ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Error *string `json:"error,omitempty"` Success bool `json:"success"` // NOTE: the frontend relies on this for some routes Err error `json:"-"` }
func NewErrorResponse ¶
func NewErrorResponse(err error) ErrorResponse
Click to show internal directories.
Click to hide internal directories.