Documentation
¶
Overview ¶
Package ddragon provides bindings to the Riots data dragon CDN.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
GetVersion validates the given version v against the array of valid versions collected from the API. If v is empty or equals "latest", the most recent version string will be returned. If the given version string is invalid, an error will be returned.
func GetVersions ¶
GetVersions returns an array of valid LoL patch version strings.
Types ¶
type Champion ¶
Champion describes a champion object.
func GetChampions ¶
GetChampions returns an array of Champion objects collected from the datadragon API.
type DDragon ¶
type DDragon struct { Version string `json:"version"` Champions []*Champion `json:"champions"` Runes []*RuneTree `json:"runes"` }
DDragon wraps the current LoL patch version and information about champions and runes collected from Riot's Datadragon API.
var DDragonInstance *DDragon
type Rune ¶
type Rune struct { UID string `json:"uid"` Name string `json:"name"` ShortDesc string `json:"shortDesc"` LongDesc string `json:"longDesc"` }
Rune describes the properties of a rune in a rune tree row.
type RuneSlot ¶
type RuneSlot struct {
Runes []*Rune `json:"runes"`
}
RuneSlot wraps a row of runes.