graphql

package
v0.0.0-...-cb32465 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AxieAliasMapToSlice

func AxieAliasMapToSlice(axieMap map[int]Axie, axieRes AxieRes) map[int]Axie

Types

type Axie

type Axie struct {
	ID         string    `json:"id"`
	Class      agp.Class `json:"class"`
	Stage      int       `json:"stage"`
	MatronId   int       `json:"matronId"`
	SireId     int       `json:"sireId"`
	Pureness   int       `json:"pureness"`
	NumMystic  int       `json:"numMystic"`
	BreedCount int       `json:"breedCount"`
	Stats      struct {
		HP     int `json:"hp"`
		Speed  int `json:"speed"`
		Skill  int `json:"skill"`
		Morale int `json:"morale"`
	}
	BirthDate int64  `json:"birthDate"`
	Genes     string `json:"genes"`
}

type AxieRes

type AxieRes struct {
	Data map[string]Axie `json:"data"`
}

type GraphQL

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

func New

func New() *GraphQL

func (*GraphQL) GetAxiesInfo

func (graphql *GraphQL) GetAxiesInfo(ids []int) (map[int]Axie, error)

Jump to

Keyboard shortcuts

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