riot

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package riot provides methods for accessing the Riot API for League of Legends. This includes dynamic data like the current game a summoner is in or their ranked standing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// Deprecated: Use Client.LoL.ChampionMastery instead. Will be removed in a future release.
	ChampionMastery *lol.ChampionMasteryClient
	// Deprecated: Use Client.LoL.Champion instead. Will be removed in a future release.
	Champion *lol.ChampionClient
	// Deprecated: Use Client.LoL.League instead. Will be removed in a future release.
	League *lol.LeagueClient
	// Deprecated: Use Client.LoL.Status instead. Will be removed in a future release.
	Status *lol.StatusClient
	// Deprecated: Use Client.LoL.Match instead. Will be removed in a future release.
	Match *lol.MatchClient
	// Deprecated: Use Client.LoL.Spectator instead. Will be removed in a future release.
	Spectator *lol.SpectatorClient
	// Deprecated: Use Client.LoL.Summoner instead. Will be removed in a future release.
	Summoner *lol.SummonerClient
	// Deprecated: Use Client.LoL.ThirdPartyCode instead. Will be removed in a future release.
	ThirdPartyCode *lol.ThirdPartyCodeClient
	// Deprecated: Use Client.LoL.Tournament instead. Will be removed in a future release.
	Tournament *lol.TournamentClient

	Account *account.Client
	LoL     *lol.Client
	LoR     *lor.Client
	Val     *val.Client
}

Client provides access to all Riot API endpoints

func NewClient

func NewClient(region api.Region, apiKey string, client internal.Doer, logger log.FieldLogger) *Client

NewClient returns a new api client for the Riot API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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