startgg

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const STARTGG_URL = "https://api.start.gg/gql/alpha"

Variables

View Source
var CountryCodes []string = maps.Values(countryNameToCode)

Functions

func FetchPlayers

func FetchPlayers(i Inputs) ([]players.Player, error)

TODO: follow pagination

Types

type GraphQL

type GraphQL struct {
	Query     string   `json:"query"`
	Variables struct{} `json:"variables"`
}

type Inputs added in v0.5.0

type Inputs struct {
	Token string
	Slug  string
}

func LoadInputs added in v0.5.0

func LoadInputs(filepath string) Inputs

func (*Inputs) Write added in v0.5.0

func (c *Inputs) Write(filepath string)

Jump to

Keyboard shortcuts

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