lol

package
v0.1.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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOLBaseURL          = "/lol/platform"
	ChampionEndpointURL = "/v3/champion-rotations"
)

URLs

Variables

This section is empty.

Functions

This section is empty.

Types

type ChampionEndpoint

type ChampionEndpoint struct {
	*internal.InternalClient
}

func (*ChampionEndpoint) FreeRotation

func (c *ChampionEndpoint) FreeRotation(region 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 {
	*internal.InternalClient
	Champion *ChampionEndpoint
}

func NewLOLClient

func NewLOLClient(client *internal.InternalClient) *LOLClient

Creates a new LOLClient using a internal client

type Region

type Region string
const (
	BR1 Region = "br1"
	NA1 Region = "na1"
)

Region enums

Jump to

Keyboard shortcuts

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