Documentation ¶
Index ¶
- type N
- type RiotClientDD
- func (c *RiotClientDD) GetDataDragonChampions() ([]byte, error)
- func (c *RiotClientDD) GetDataDragonChampionsSpecificVersionLanguage(gameVersion, language string) ([]byte, error)
- func (c *RiotClientDD) GetDataDragonItemsSpecificVersionLanguage(gameVersion, language string) ([]byte, error)
- func (c *RiotClientDD) GetDataDragonSummonerSpells() ([]byte, error)
- func (c *RiotClientDD) GetDataDragonSummonerSpellsSpecificVersionLanguage(gameVersion, language string) ([]byte, error)
- func (c *RiotClientDD) GetLoLVersions() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type N ¶
type N struct { Item string `json:"item"` Rune string `json:"rune"` Mastery string `json:"mastery"` Summoner string `json:"summoner"` Champion string `json:"champion"` Profileicon string `json:"profileicon"` Map string `json:"map"` Language string `json:"language"` Sticker string `json:"sticker"` }
N holds the actual versions
type RiotClientDD ¶
type RiotClientDD struct {
// contains filtered or unexported fields
}
RiotClientDD Riot LoL API DataDragon client
func New ¶
func New(httpClient httpClient, cfg config.RiotClient) (*RiotClientDD, error)
New creates a new Riot LoL API Data Dragon client
func (*RiotClientDD) GetDataDragonChampions ¶
func (c *RiotClientDD) GetDataDragonChampions() ([]byte, error)
GetDataDragonChampions returns the current champions available for the live game version
func (*RiotClientDD) GetDataDragonChampionsSpecificVersionLanguage ¶
func (c *RiotClientDD) GetDataDragonChampionsSpecificVersionLanguage(gameVersion, language string) ([]byte, error)
GetDataDragonChampionsSpecificVersionLanguage returns the current champions available for the live game version
func (*RiotClientDD) GetDataDragonItemsSpecificVersionLanguage ¶
func (c *RiotClientDD) GetDataDragonItemsSpecificVersionLanguage(gameVersion, language string) ([]byte, error)
GetDataDragonItemsSpecificVersionLanguage returns the current Items available for the live game version
func (*RiotClientDD) GetDataDragonSummonerSpells ¶
func (c *RiotClientDD) GetDataDragonSummonerSpells() ([]byte, error)
GetDataDragonChampions returns the current champions available for the live game version
func (*RiotClientDD) GetDataDragonSummonerSpellsSpecificVersionLanguage ¶
func (c *RiotClientDD) GetDataDragonSummonerSpellsSpecificVersionLanguage(gameVersion, language string) ([]byte, error)
GetDataDragonSummonerSpellsSpecificVersionLanguage returns the current Summoner Spells available for the live game version
func (*RiotClientDD) GetLoLVersions ¶
func (c *RiotClientDD) GetLoLVersions() ([]byte, error)
GetLoLVersions returns all currenctly known LoL Versions