Documentation
¶
Index ¶
- func ChampionsAvailable() ([]string, []string)
- func CleanCache()
- func CloseSession()
- func DisableTrackOnServer(channel string)
- func HasGameEnded(lg []LiveGame, accs []Account) (l []LiveGame, a []Account)
- func IsLiveGame(run *sync.WaitGroup)
- func IsNew(region, nickname, typo string) (resp bool)
- func IsTracked(region, nickname, channel string) (resp bool)
- func LoadAllLiveGame(typo string, posted bool) (lg []LiveGame, accs []Account)
- func LoadData()
- func LoadFreeList()
- func LoadLocal(path string, i interface{})
- func OpenSession()
- func SearchAccount(region, nickname, class string) (resp bool)
- func ServerIsRegistred(guild string) (proceeds bool, channel string)
- func ShowAccountInfo(region, nickname string) ([]string, string, string)
- func ShowAccountMastery(region, compressed_nick string, level int) ([]string, []string, int)
- func ShowLeaderboard(channel string) (des, res []string, valid bool)
- func ShowLiveGame(region, id string) (des, red, blu []string)
- func ShowPostGame(region, match, id string) (des, data, ban, p []string, aes []int)
- func Tables()
- func TrackAttach(region, compacted_account, channel string) string
- func TrackConfig(guild, channel string)
- func TrackRemove(region, compacted_account, channel string) string
- type Account
- type AccountRank
- type Data
- type FreeChampion
- type Item
- type LiveGame
- type LiveGameBan
- type LiveGamePlayer
- type Mastery
- type Match
- type Player
- type PostRunes
- type Queue
- type Rank
- type RiotAPI
- type Rune
- type Server
- type StringInt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChampionsAvailable ¶
func CleanCache ¶
func CleanCache()
func CloseSession ¶
func CloseSession()
func DisableTrackOnServer ¶
func DisableTrackOnServer(channel string)
Remove a Discord server from the database.
func IsLiveGame ¶
func LoadAllLiveGame ¶
Load all live game data from the database.
func LoadFreeList ¶
func LoadFreeList()
func OpenSession ¶
func OpenSession()
func SearchAccount ¶
func ServerIsRegistred ¶
Check to see if a Discord server is stored in the database.
func ShowAccountMastery ¶
func ShowLeaderboard ¶
func ShowLiveGame ¶
func ShowPostGame ¶
func TrackAttach ¶
func TrackConfig ¶
func TrackConfig(guild, channel string)
func TrackRemove ¶
Types ¶
type Account ¶
type Account struct { ID string `json:"id"` AccountID string `json:"accountId"` Puuid string `json:"puuid"` Name string `json:"name"` ProfileIconID int `json:"profileIconId"` RevisionDate int64 `json:"revisionDate"` SummonerLevel int `json:"summonerLevel"` Continent string Region string Channel string TrackID string }
type AccountRank ¶
type AccountRank struct { LeagueID string `json:"leagueId"` QueueType string `json:"queueType"` Icon string Tier string `json:"tier"` SubTier string `json:"rank"` Name string SummonerID string `json:"summonerId"` LeaguePoints int `json:"leaguePoints"` Wins int `json:"wins"` Losses int `json:"losses"` HotStreak bool `json:"hotStreak"` Team int MiniSeries struct { Target int `json:"target"` Wins int `json:"wins"` Losses int `json:"losses"` Progress string `json:"progress"` } `json:"miniSeries,omitempty"` }
type FreeChampion ¶
type LiveGame ¶
type LiveGame struct { GameID int `json:"gameId"` GameQueueConfigID int `json:"gameQueueConfigId"` PlatformID string `json:"platformId"` Participants []LiveGamePlayer `json:"participants"` BannedChampions []LiveGameBan `json:"bannedChampions"` ChannelID string GuildID string MessageID string ID string On bool }
type LiveGameBan ¶
type LiveGamePlayer ¶
type Match ¶
type Match struct { Metadata struct { MatchID string `json:"matchId"` } `json:"metadata"` Info struct { Duration int64 `json:"gameDuration"` Participants []Player `json:"participants"` QueueID int `json:"queueId"` Teams []struct { Bans []LiveGameBan `json:"bans"` TeamID int `json:"teamId"` } `json:"teams"` } `json:"info"` }
type Player ¶
type Player struct { SummonerID string `json:"summonerId"` SummonerName string `json:"summonerName"` ChampionId StringInt `json:"championId"` ChampionName string `json:"championName"` Kill int `json:"kills"` Death int `json:"deaths"` Assist int `json:"assists"` Item0 int `json:"item0"` Item1 int `json:"item1"` Item2 int `json:"item2"` Item3 int `json:"item3"` Item4 int `json:"item4"` Item5 int `json:"item5"` Item6 int `json:"item6"` D int `json:"summoner1Id"` F int `json:"summoner2Id"` Win bool `json:"win"` Perks struct { Styles []PostRunes `json:"styles"` } `json:"perks"` }
type RiotAPI ¶
type RiotAPI struct { N struct { Item string `json:"item"` Rune string `json:"rune"` Mastery string `json:"mastery"` Summoner string `json:"summoner"` Champion string `json:"champion"` Profileicon string `json:"profileicon"` Map string `json:"map"` Language string `json:"language"` Sticker string `json:"sticker"` } `json:"n"` Version string `json:"v"` Cdn string `json:"cdn"` }
var (
L RiotAPI
)
type Server ¶
func LoadAllServerDB ¶
func LoadAllServerDB() (servers []Server)
Load all servers from the database.
Click to show internal directories.
Click to hide internal directories.