leago

package module
v0.0.0-...-9d35b2a Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

What is Leago?

Leago is a small and simple library with a convenient interface to interact with Riot API.

League of Legends picture

Notes

  • Riot API has many more methods than this implementation written in Golang.
  • Before using the library, it's advised to visit Riot API documentation page.

How to start using?

go get github.com/mikemight/leago

Finally

Leago uses a rate limiter from this library

IMPORTANT: When initializing the API client, use restrictions that match the Riot API restrictions!

  • 20 requests every 1 seconds(s)
  • 100 requests every 2 minutes(s)

Otherwise, very often there will be an error associated with exceeding the number of requests.

Riot Developer Portal | RDP

Go to view

Documentation

Index

Constants

View Source
const (
	RANKED_SOLO_5x5 = "RANKED_SOLO_5x5"
	RANKED_FLEX_SR  = "RANKED_FLEX_SR"
	RANKED_FLEX_TT  = "RANKED_FLEX_TT"
	CHALLENGER      = "CHALLENGER"
	GRANDMASTER     = "GRANDMASTER"
	MASTER          = "MASTER"
	DIAMOND         = "DIAMOND"
	PLATINUM        = "PLATINUM"
	GOLD            = "GOLD"
	SILVER          = "SILVER"
	BRONZE          = "BRONZE"
	IRON            = "IRON"
	I               = "I"
	II              = "II"
	III             = "III"
	IV              = "IV"
)
View Source
const (
	AMERICAS = "americas"
	ASIA     = "asia"
	EUROPE   = "europe"
	BR1      = "br1"
	EUN1     = "eun1"
	EUW1     = "euw1"
	JP1      = "jp1"
	KR       = "kr"
	LA1      = "la1"
	LA2      = "la2"
	NA1      = "na1"
	OC1      = "oc1"
	TR1      = "tr1"
	RU       = "ru"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(accessToken string, httpClient *http.Client, limiter *throttled.GCRARateLimiter) *client

Types

This section is empty.

Jump to

Keyboard shortcuts

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