controller

package
v0.0.0-...-b080998 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthcheck

type Healthcheck struct{}

func (Healthcheck) GetHealthcheck

func (ctrl Healthcheck) GetHealthcheck(c echo.Context) error

GetHealthcheck returns the current functional state of the application

type Racer

type Racer struct{}

func (Racer) GetRacer

func (ctrl Racer) GetRacer(c echo.Context) error

func (Racer) GetRacerJSON

func (ctrl Racer) GetRacerJSON(c echo.Context) error

type RacerChallenge

type RacerChallenge struct {
	// contains filtered or unexported fields
}

func NewRacerChallenge

func NewRacerChallenge() *RacerChallenge

func (*RacerChallenge) GetChallenge

func (ctrl *RacerChallenge) GetChallenge(c echo.Context) error

func (*RacerChallenge) Vote

func (ctrl *RacerChallenge) Vote(c echo.Context) error

type RacerChallengeViewModel

type RacerChallengeViewModel struct {
	Racer1 RacerViewModel
	Racer2 RacerViewModel
	Vote1  string
	Vote2  string
	Token  string
}

type RacerList

type RacerList struct{}

func (RacerList) GetRacers

func (ctrl RacerList) GetRacers(c echo.Context) error

type RacerListViewModel

type RacerListViewModel struct {
	Racers []RacerViewModel
}

type RacerViewModel

type RacerViewModel struct {
	Name   string
	ID     string
	Image  string
	Rating int64
}

Jump to

Keyboard shortcuts

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