viewmodel

package
v0.0.0-...-cb1e3f4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChampResponse

type ChampResponse struct {
	Slug string `json:"slug"`
	Name string `json:"name"`
}

func ParseChampResponse

func ParseChampResponse(champ entity.Champ) ChampResponse

func ParseChampResponseList

func ParseChampResponseList(teams []entity.Champ) []ChampResponse

type GraphQLQueryRequest

type GraphQLQueryRequest struct {
	Query         string                 `json:"query"`
	OperationName string                 `json:"operationName"`
	Variables     map[string]interface{} `json:"variables"`
}

type TeamResponse

type TeamResponse struct {
	Abbr     string               `json:"abbr"`
	Name     string               `json:"name"`
	FullName string               `json:"full_name"`
	Trophies []TeamResponseTrophy `json:"trophies"`
}

func ParseTeamResponse

func ParseTeamResponse(team entity.Team) TeamResponse

func ParseTeamResponseList

func ParseTeamResponseList(teams []entity.Team) []TeamResponse

type TeamResponseTrophy

type TeamResponseTrophy struct {
	Year  int `json:"year"`
	Champ struct {
		Slug string `json:"slug"`
		Name string `json:"name"`
	} `json:"champ"`
}

Jump to

Keyboard shortcuts

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