lol

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOLBaseURLFormat    = "https://%s.api.riotgames.com/lol/platform%s"
	ChampionEndpointURL = "/v3/champion-rotations"
)

League of Legends endpoints

Variables

This section is empty.

Functions

This section is empty.

Types

type ChampionEndpoint

type ChampionEndpoint struct {
	// contains filtered or unexported fields
}

func (*ChampionEndpoint) FreeRotation

func (c *ChampionEndpoint) FreeRotation(region api.Region) (*FreeChampionsRotation, error)

Get Free Champions Rotation

type FreeChampionsRotation

type FreeChampionsRotation struct {
	FreeChampionIds              []int `json:"freeChampionIds"`
	FreeChampionIdsForNewPlayers []int `json:"freeChampionIdsForNewPlayers"`
	MaxNewPlayerLevel            int   `json:"maxNewPlayerLevel"`
}

type LOLClient

type LOLClient struct {
	Champion *ChampionEndpoint
	// contains filtered or unexported fields
}

func NewLOLClient

func NewLOLClient(client *internal.InternalClient) *LOLClient

Creates a new LOLClient using a InternalClient

Jump to

Keyboard shortcuts

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