riotclientdd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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