game

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Params
}

func New

func New(params Params) Handler

func (Handler) Create

func (h Handler) Create(c echo.Context) error

swagger:route POST /games games reqCreateGameWrapper

Create game object

This endpoint will create the game and return the game structure

Responses:
  200: Game
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (Handler) GetByFilter

func (h Handler) GetByFilter(c echo.Context) error

swagger:route GET /games games reqGetByFilter

Getting a list of games by filter

This endpoint returns a list of extended game structures

Responses:
  200: GameExList
  500: HTTPError

func (Handler) GetByID

func (h Handler) GetByID(c echo.Context) error

swagger:route GET /games/{id} games reqGetByID

Getting a game by ID

This endpoint returns the extended structure of the game

Responses:
  200: GameEx
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (Handler) Publish

func (h Handler) Publish(c echo.Context) error

swagger:route POST /games/{id}/publish games reqPublish

Publishing the game to the store

This endpoint will publish the game to the store and return the extended game structure

Responses:
  200: GameEx
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (Handler) Update

func (h Handler) Update(c echo.Context) error

swagger:route PUT /games/{id} games reqUpdateGameWrapper

Update game object

This endpoint will update the game and return the extended game structure

Responses:
  200: GameEx
  400: HTTPError
  404: HTTPError
  500: HTTPError

type Params

type Params struct {
	fx.In

	GameService service.GameService
	View        View
}

type View

type View struct {
	ViewParams
}

func NewView

func NewView(p ViewParams) View

type ViewParams

type ViewParams struct {
	fx.In

	RegionCurrencyService service.RegionCurrencyService
	MediaService          service.MediaService
	URLBuilder            url_builder.Helper
	TagView               tag.View
	FeatureView           feature.View
	GenreView             genre.View
}

Jump to

Keyboard shortcuts

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