Documentation ¶
Overview ¶
Package static provides methods to access static data and constant values used by the Riot API. These values will rarely be updated, only if e.g. a new season starts or a new game mode is added.
Index ¶
- type Client
- func (c *Client) ClearCaches()
- func (c *Client) GetGameMode(mode string) (GameMode, error)
- func (c *Client) GetGameModes() ([]GameMode, error)
- func (c *Client) GetGameType(typ string) (GameType, error)
- func (c *Client) GetGameTypes() ([]GameType, error)
- func (c *Client) GetMap(id int) (Map, error)
- func (c *Client) GetMaps() ([]Map, error)
- func (c *Client) GetQueue(id int) (Queue, error)
- func (c *Client) GetQueues() ([]Queue, error)
- func (c *Client) GetSeason(id int) (Season, error)
- func (c *Client) GetSeasons() ([]Season, error)
- type GameMode
- type GameType
- type Map
- type Queue
- type Season
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides access to static data provided by Riot data is fetched on the first call to each method and cached for further calls
func NewClient ¶
func NewClient(doer internal.Doer, logger logrus.FieldLogger) *Client
NewClient returns a new client
func (*Client) ClearCaches ¶
func (c *Client) ClearCaches()
ClearCaches clears caches for all methods
func (*Client) GetGameMode ¶
GetGameMode returns the game mode for the specified id or an error if no mode for the id exists
func (*Client) GetGameModes ¶
GetGameModes returns static data for game modes
func (*Client) GetGameType ¶
GetGameType returns the game type for the specified id or an error if no type for the id exists
func (*Client) GetGameTypes ¶
GetGameTypes returns static data for game types
func (*Client) GetMap ¶
GetMap returns the map for the specified id or an error if no map for the id exists
func (*Client) GetQueue ¶
GetQueue returns the queue for the specified id or an error if no queue for the id exists
func (*Client) GetSeason ¶
GetSeason returns the season for the specified id or an error if no season for the id exists
func (*Client) GetSeasons ¶
GetSeasons returns static data for seasons