api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWaitSeconds = 30

Default amount of time to wait if Riot doesn't tell us.

Variables

This section is empty.

Functions

func Get

func Get(url string, cb func(body []byte)) (error, int)

Get : Make a request to the Riot API and call the specified function on success. If anything goes wrong with the request the first return value will provide more information. If the error is rate limit related, the second value will be the number of seconds you should wait before attempting another request. If the error is not rate limit-related then the value of the second argument will always be 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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