Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TrevorSStone/goriot
/ functions
Functions
62 in github.com/TrevorSStone/goriot
⨍
Functions
62
◇
Types & classes
48
↓ 43 callers
Method
Error
Error prints the error message for a RiotError
goriot.go:193
↓ 22 callers
Function
SetAPIKey
SetAPIKey sets the global key for the Riot Games API. If you do not have one you can get one for free at https://developer.riotgames.com/
goriot.go:103
↓ 21 callers
Function
IsKeySet
IsKeySet returns a bool of if the global API key has been set
goriot.go:147
↓ 21 callers
Function
requestAndUnmarshal
(requestURL string, v interface{})
goriot.go:151
↓ 13 callers
Method
String
Creates a comma separated string
goriot.go:86
↓ 4 callers
Function
NormalizeSummonerName
NormalizeSummonerName takes an arbitrary number of strings and returns a string array containing the strings standardized to league of legends interna
summoner.go:204
↓ 3 callers
Function
SetLongRateLimit
SetLongRateLimit allows a custom rate limit to be set. For at the time of this writing the default for a development API key is 500 requests every 10
goriot.go:119
↓ 3 callers
Function
SetSmallRateLimit
SetSmallRateLimit allows a custom rate limit to be set. For at the time of this writing the default for a development API key is 10 requests every 10
goriot.go:109
↓ 2 callers
Function
ChampionList
ChampionList retrieves the current list of champions from the Riot Games API. If freetoplay is set to true, only champions currently free to play are
champion.go:25
↓ 2 callers
Function
MatchByMatchID
MatchByMatchID requests the MatchDetails from Riot You can optionally include the timeline of events if needed API key needs to be set prior to use
match.go:223
↓ 2 callers
Function
MatchHistoryBySummonerID
( region string, summonerID int64, championIDs []int64, rankedQueues []string, beginIndex int, endIndex
matchhistory.go:24
↓ 2 callers
Function
checkRateLimiter
(RateChan rateChan)
goriot.go:177
↓ 2 callers
Function
checkTimeTrigger
(RateChan rateChan)
goriot.go:183
↓ 2 callers
Function
rateLimitHandler
(RateChan rateChan, pertime time.Duration)
goriot.go:127
↓ 2 callers
Function
timeTriggerWatcher
(timeTrigger chan bool, returnChan chan bool)
goriot.go:141
↓ 1 callers
Function
ChampionByID
ChampsionByID retrieves the champion from the Riot Games API. It returns a single Champion and any errors that occured from the server The global API
champion.go:47
↓ 1 callers
Function
LeagueByChallenger
LeagueByChallenger retrieves all the league entries for the Challenger group It returns a League and any errors that occured from the server The globa
league.go:190
↓ 1 callers
Function
LeagueBySummoner
LeagueBySummoner retrieves the league of the supplied summonerID(s) from Riot Games API. It returns a League and any errors that occured from the serv
league.go:43
↓ 1 callers
Function
LeagueByTeam
LeagueByTeam retrieves all leagues for passed in Team(s) It returns a map of TeamID to slice of League and any errors The global API key must be set b
league.go:126
↓ 1 callers
Function
LeagueEntryBySummoner
LeagueEntryBySummoner retrieves the league entry of the supplied summonerID. The difference from LeagueBySummoner is that LeagueEntryBySummoner only r
league.go:84
↓ 1 callers
Function
LeagueEntryByTeam
LeagueEntryByTeam retrieves all entries for a Team It returns a League and any errors that occured from the server The global API key must be set befo
league.go:158
↓ 1 callers
Function
MasteriesBySummoner
MasteriesBySummoner retrieves the mastery pages of the supplied summonerIDs from Riot Games API. It returns a map of array pf MasteryPage with the key
summoner.go:60
↓ 1 callers
Function
RankedStatsBySummoner
RankedStatsBySummoner retrieves the ranked statistics of the supplied summonerID from Riot Games API. It returns a RankedStats and any errors that occ
stats.go:118
↓ 1 callers
Function
RecentGameBySummoner
RecentGameBySummoner retrieves the current list of recent games from the Riot Games API. It returns an array of Game(s) and any errors that occured fr
game.go:120
↓ 1 callers
Function
RunesBySummoner
RunesBySummoner retrieves the rune pages of the supplied summonerIDs from Riot Games API. It returns a map of array of RunePage with the key being the
summoner.go:87
↓ 1 callers
Function
StatSummariesBySummoner
StatSummariesBySummoner retrieves the statistics of the supplied summonerID from Riot Games API. It returns an array of PlayerStatsSummary and any err
stats.go:96
↓ 1 callers
Function
SummonerByID
SummonerByID retrieves the summoner information of the provided summoner IDs from Riot Games API. It returns a map of Summoner with the key being summ
summoner.go:135
↓ 1 callers
Function
SummonerByName
SummonerByName retrieves the summoner information of the provided summoner names from Riot Games API. It returns a Map of Summoner with the key being
summoner.go:117
↓ 1 callers
Function
SummonerNamesByID
SummonerNamesByID retrieves multiple summoner's information of the provided summoner IDs from Riot Games API. It returns an map of string with the key
summoner.go:164
↓ 1 callers
Function
TeamBySummonerID
TeamBySummonerID retrieves a summoner's assosiated teams from Riot Games API. It returns an array of Team and any errors that occured from the server
team.go:67
↓ 1 callers
Function
TeamByTeamID
Search for Team information using Team ID Returns Team match history and information or errors from server Global API key must be set prior to use
team.go:106
Function
ExampleSetLongRateLimit
ExampleSetLongRateLimit shows the default way to set the larger rate limit for developers
goriot_test.go:277
Function
ExampleSetSmallRateLimit
ExampleSetSmallRateLimit shows the default way to set the smaller rate limit for developers
goriot_test.go:272
Function
FeaturedGameBySummonerID
FeaturedGameBySummonerID requests a FeaturedGame from Riot API key needs to be set prior to use
featured.go:71
Function
FeaturedGames
FeaturedGames requests a list of FeaturedGames from Riot API key needs to be set prior to use
featured.go:49
Method
String
Convers int64 slice to string slice and returns comma separated string
goriot.go:92
Function
TestChampionByID
(t *testing.T)
goriot_test.go:29
Function
TestChampionsList
(t *testing.T)
goriot_test.go:20
Function
TestLeagueByChallenger
(t *testing.T)
goriot_test.go:56
Function
TestLeagueBySummoner
(t *testing.T)
goriot_test.go:47
Function
TestLeagueByTeam
(t *testing.T)
goriot_test.go:74
Function
TestLeagueEntryBySummoner
(t *testing.T)
goriot_test.go:65
Function
TestLeagueEntryByTeam
(t *testing.T)
goriot_test.go:83
Function
TestMasteriesBySummoner
(t *testing.T)
goriot_test.go:110
Function
TestMatchByMatchIDNoTimeline
(t *testing.T)
goriot_test.go:173
Function
TestMatchByMatchIDWithTimeline
(t *testing.T)
goriot_test.go:182
Function
TestMatchHistoryBySummonerID
(t *testing.T)
goriot_test.go:191
Function
TestMatchHistoryBySummonerIDWithFilters
(t *testing.T)
goriot_test.go:201
Function
TestNormalizeSummonerName
(t *testing.T)
goriot_test.go:242
Function
TestRankedStatsBySummoner
(t *testing.T)
goriot_test.go:101
Function
TestRateLimits
(t *testing.T)
goriot_test.go:214
Function
TestRecentGameBySummoner
(t *testing.T)
goriot_test.go:38
Function
TestRunesBySummoner
(t *testing.T)
goriot_test.go:119
Function
TestSetup
(t *testing.T)
goriot_test.go:15
Function
TestStatSummariesBySummoner
(t *testing.T)
goriot_test.go:92
Function
TestSummonerByID
(t *testing.T)
goriot_test.go:137
Function
TestSummonerByName
(t *testing.T)
goriot_test.go:128
Function
TestSummonerNamesByID
(t *testing.T)
goriot_test.go:146
Function
TestTeamBySummonerID
(t *testing.T)
goriot_test.go:155
Function
TestTeamByTeamID
(t *testing.T)
goriot_test.go:164
Function
createSummonerIDString
(summonerID []int64)
summoner.go:189
Function
createTeamIDString
Creates a string of comma seperated Team IDs from a slice of Team IDs There is currently a hard limit of 10 Teams
team.go:135