Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct { ID string `json:"id"` Name string `json:"name"` Manufacturer string `json:"manufacturer"` ReleaseDate string `json:"release_date"` }
Console represents the console model response.
type ConsoleInsert ¶
type ConsoleInsert struct { Name string `json:"name"` Manufacturer string `json:"manufacturer"` ReleaseDate string `json:"release_date"` }
ConsoleInsert represents the console model request.
func (ConsoleInsert) Validate ¶
func (c ConsoleInsert) Validate() error
Validate validates the console insert request.
type ErrorResponse ¶
type ErrorResponse struct {
Errors []string `json:"errors"`
}
ErrorResponse is the default error response.
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
Error implements the error interface.
Click to show internal directories.
Click to hide internal directories.