Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderContentType = "Content-Type" HeaderAuthorization = "Authorization" MimeJSON = "application/json" MimeParameterUTF8 = "charset=utf-8" )
Variables ¶
View Source
var ErrMessageInternalServerError = "internal server error"
View Source
var ErrMessageNotFound = "not found"
View Source
var ErrResponseInternalServerError = []byte(`{"error": {"message": "internal server error"}}`)
View Source
var ErrResponseNotFound = []byte(`{"error": {"message": "not found"}}`)
View Source
var ErrResponseUnsupportedMediaType = []byte(`{"error": {"message": "unsupported media type"}}`)
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Error struct { Message string `json:"message"` } `json:"error"` }
Click to show internal directories.
Click to hide internal directories.