Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { // The error message Message string `json:"message" binding:"required" example:"Something went wrong :("` }
Body models errors as JSON in the API
type Metadata ¶
type Metadata struct { // When the data was created CreatedAt time.Time `json:"created_at" swaggertype:"string" format:"date-time"` // When the data was last modified ModifiedAt time.Time `json:"modified_at" swaggertype:"string" format:"date-time"` // Data versioning information Version Version `json:"version"` }
Metadata holds information about the data it's embedded in
func FromDomainMetadata ¶
Click to show internal directories.
Click to hide internal directories.