model

package
v0.0.0-...-61270f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

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.

type Game

type Game struct {
	ID          int      `json:"id"`
	Name        string   `json:"name"`
	Genres      []string `json:"genres"`
	Platforms   []string `json:"platforms"`
	ReleaseDate string   `json:"release_date"`
}

Game represents a game.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL