gol

package module
v0.0.0-...-cbc503f Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 6 Imported by: 0

README

GoL Header

GoL

Build Status codecov GoDoc

League of Legends API Go Client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoLClient

type GoLClient struct {
	Champion        *champion.Client
	ChampionMastery *championmastery.Client
	League          *league.Client
	CurrentRegion   region.Region
	CurrentAPIKey   string
}

GoLClient represents the League of Legends API Client

func NewClient

func NewClient(apiKey string, region region.Region) *GoLClient

NewClient create a new GolClient authenticated with the specified apiKey, and the region endpoint which the request will be sent

func (*GoLClient) SetAPIKey

func (c *GoLClient) SetAPIKey(apiKey string)

SetAPIKey changes the key used for authentication with apiKey

func (*GoLClient) SetRegion

func (c *GoLClient) SetRegion(region region.Region)

SetRegion changes the region to which this clients will send the request to

Jump to

Keyboard shortcuts

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