golio: github.com/KnutZuidema/golio/model Index | Files

package model

import "github.com/KnutZuidema/golio/model"

Package model includes all API object models. It may include convenience methods for accessing data that is not natively included in the objects returned by the API.

Index

Package Files

banned_champion.go champion_data.go champion_data_extended.go champion_data_info.go champion_data_stats.go champion_info.go champion_mastery.go current_game_info.go current_game_participant.go data_dragon_response.go docs.go featured_game_info.go featured_games.go game_customization_object.go image_data.go incident.go item.go item_stats.go league_entry.go league_list.go legacy_mastery.go lobby_event.go lobby_event_list.go mastery.go match.go match_reference.go matchlist.go mini_series.go observer.go participant.go participant_identity.go participant_stats.go participant_timeline.go passive_data.go perks.go player.go profile_icon.go provider_registration_parameters.go recommended_item.go recommended_item_data.go recommended_item_set.go rune.go service.go skin_data.go spell_data.go status.go status_message.go status_translation.go summoner.go summoner_spell.go team_ban.go team_stats.go tournament.go tournament_code_parameters.go tournament_code_update_parameters.go tournament_registration_parameters.go

type BannedChampion Uses

type BannedChampion struct {
    PickTurn   int `json:"pickTurn"`
    ChampionID int `json:"championId"`
    TeamID     int `json:"teamId"`
}

BannedChampion represents a champion ban during pack/ban phase

type ChampionData Uses

type ChampionData struct {
    Version string            `json:"version"`
    ID      string            `json:"id"`
    Key     string            `json:"key"`
    Name    string            `json:"name"`
    Title   string            `json:"title"`
    Blurb   string            `json:"blurb"`
    Info    ChampionDataInfo  `json:"info"`
    Image   ImageData         `json:"image"`
    Tags    []string          `json:"tags"`
    Partype string            `json:"partype"`
    Stats   ChampionDataStats `json:"stats"`
}

ChampionData contains information about a champion

type ChampionDataExtended Uses

type ChampionDataExtended struct {
    ChampionData
    Skins            []SkinData            `json:"skins"`
    Lore             string                `json:"lore"`
    AllyTips         []string              `json:"allytips"`
    EnemyTips        []string              `json:"enemytips"`
    Spells           []SpellData           `json:"spells"`
    Passive          PassiveData           `json:"passive"`
    RecommendedItems []RecommendedItemData `json:"recommended"`
}

ChampionDataExtended contains additional data about a champion

type ChampionDataInfo Uses

type ChampionDataInfo struct {
    Attack     int `json:"attack"`
    Defense    int `json:"defense"`
    Magic      int `json:"magic"`
    Difficulty int `json:"difficulty"`
}

ChampionDataInfo contains information about the playstyle of a champion

type ChampionDataStats Uses

type ChampionDataStats struct {
    HealthPoints                    float64 `json:"hp"`
    HealthPointsPerLevel            float64 `json:"hpperlevel"`
    ManaPoints                      float64 `json:"mp"`
    ManaPointsPerLevel              float64 `json:"mpperlevel"`
    MovementSpeed                   float64 `json:"movespeed"`
    Armor                           float64 `json:"armor"`
    ArmorPerLevel                   float64 `json:"armorperlevel"`
    SpellBlock                      float64 `json:"spellblock"`
    SpellBlockPerLevel              float64 `json:"spellblockperlevel"`
    AttackRange                     float64 `json:"attackrange"`
    HealthPointRegeneration         float64 `json:"hpregen"`
    HealthPointRegenerationPerLevel float64 `json:"hpregenperlevel"`
    ManaPointRegeneration           float64 `json:"mpregen"`
    ManaPointRegenerationPerLevel   float64 `json:"mpregenperlevel"`
    CriticalStrikeChance            float64 `json:"crit"`
    CriticalStrikeChancePerLevel    float64 `json:"critperlevel"`
    AttackDamage                    float64 `json:"attackdamage"`
    AttackDamagePerLevel            float64 `json:"attackdamageperlevel"`
    AttackSpeedOffset               float64 `json:"attackspeedoffset"`
    AttackSpeedPerLevel             float64 `json:"attackspeedperlevel"`
}

ChampionDataStats contains information about the stats of a champion

type ChampionInfo Uses

type ChampionInfo struct {
    FreeChampionIDsForNewPlayers []int `json:"freeChampionIDsForNewPlayers"`
    FreeChampionIDs              []int `json:"freeChampionIDs"`
    MaxNewPlayerLevel            int   `json:"maxNewPlayerLevel"`
}

ChampionInfo contains information about the free champion rotation

type ChampionMastery Uses

type ChampionMastery struct {
    ChestGranted                 bool   `json:"chestGranted"`
    ChampionLevel                int    `json:"championLevel"`
    ChampionPoints               int    `json:"championPoints"`
    ChampionID                   int    `json:"championId"`
    ChampionPointsUntilNextLevel int    `json:"championPointsUntilNextLevel"`
    LastPlayTime                 int    `json:"lastPlayTime"`
    TokensEarned                 int    `json:"tokensEarned"`
    ChampionPointsSinceLastLevel int    `json:"championPointsSinceLastLevel"`
    SummonerID                   string `json:"summonerId"`
}

ChampionMastery represents the mastery of a champion in the mastery system for a summoner

type CurrentGameInfo Uses

type CurrentGameInfo struct {
    GameID            int                      `json:"gameId"`
    GameStartTime     int                      `json:"gameStartTime"`
    PlatformID        string                   `json:"platformId"`
    GameMode          string                   `json:"gameMode"`
    MapID             int                      `json:"mapId"`
    GameType          string                   `json:"gameType"`
    BannedChampions   []BannedChampion         `json:"bannedChampions"`
    Observers         Observer                 `json:"observers"`
    Participants      []CurrentGameParticipant `json:"participants"`
    GameLength        int                      `json:"gameLength"`
    GameQueueConfigID int                      `json:"gameQueueConfigId"`
}

CurrentGameInfo contains information about an ongoing game

type CurrentGameParticipant Uses

type CurrentGameParticipant struct {
    ProfileIconID            int                       `json:"profileIconId"`
    ChampionID               int                       `json:"championId"`
    SummonerName             string                    `json:"summonerName"`
    GameCustomizationObjects []GameCustomizationObject `json:"gameCustomizationObjects"`
    Bot                      bool                      `json:"bot"`
    Perks                    Perks                     `json:"perks"`
    Spell2ID                 int                       `json:"spell2Id"`
    TeamID                   int                       `json:"teamId"`
    Spell1ID                 int                       `json:"spell1Id"`
    SummonerID               string                    `json:"summonerId"`
}

CurrentGameParticipant represents a player in an ongoing game

type DataDragonResponse Uses

type DataDragonResponse struct {
    Type    string
    Format  string
    Version string
    Data    interface{}
}

DataDragonResponse represents a response from the Data Dragon service

type FeaturedGameInfo Uses

type FeaturedGameInfo struct {
    GameID            int              `json:"gameId"`
    GameStartTime     int              `json:"gameStartTime"`
    PlatformID        string           `json:"platformId"`
    GameMode          string           `json:"gameMode"`
    MapID             int              `json:"mapId"`
    GameType          string           `json:"gameType"`
    BannedChampions   []BannedChampion `json:"bannedChampions"`
    Observers         Observer         `json:"observers"`
    Participants      []Participant    `json:"participants"`
    GameLength        int              `json:"gameLength"`
    GameQueueConfigID int              `json:"gameQueueConfigId"`
}

FeaturedGameInfo contains information about a featured game

type FeaturedGames Uses

type FeaturedGames struct {
    ClientRefreshInterval int                `json:"clientRefreshInterval"`
    GameList              []FeaturedGameInfo `json:"gameList"`
}

FeaturedGames represents a list of featured games

type GameCustomizationObject Uses

type GameCustomizationObject struct {
    Category string `json:"category"`
    Content  string `json:"content"`
}

GameCustomizationObject contains information specific to an ongoing game

type ImageData Uses

type ImageData struct {
    Full   string `json:"full"`
    Sprite string `json:"sprite"`
    Group  string `json:"group"`
    X      int    `json:"x"`
    Y      int    `json:"y"`
    W      int    `json:"w"`
    H      int    `json:"h"`
}

ImageData contains information about an image

type Incident Uses

type Incident struct {
    Active    bool            `json:"active"`
    CreatedAt string          `json:"created_at"`
    ID        int             `json:"id"`
    Updates   []StatusMessage `json:"updates"`
}

Incident contains information about an incident

type Item Uses

type Item struct {
    Name string `json:"name"`
    Rune struct {
        IsRune bool   `json:"isrune"`
        Tier   int    `json:"tier"`
        Type   string `json:"type"`
    }   `json:"rune"`
    Gold struct {
        Base        int  `json:"base"`
        Total       int  `json:"total"`
        Sell        int  `json:"sell"`
        Purchasable bool `json:"purchasable"`
    }   `json:"gold"`
    Group            string          `json:"group"`
    Description      string          `json:"description"`
    Colloqial        string          `json:"colloq"`
    Plaintext        string          `json:"plaintext"`
    Consumed         bool            `json:"consumed"`
    Stacks           int             `json:"stacks"`
    Depth            int             `json:"depth"`
    ConsumeOnFull    bool            `json:"consumeOnFull"`
    From             []string        `json:"from"`
    Into             []string        `json:"into"`
    SpecialRecipe    int             `json:"specialRecipe"`
    InStore          bool            `json:"inStore"`
    HideFromAll      bool            `json:"hideFromAll"`
    RequiredChampion string          `json:"requiredChampion"`
    Stats            ItemStats       `json:"stats"`
    Tags             []string        `json:"tags"`
    Maps             map[string]bool `json:"maps"`
}

Item represents an item

type ItemStats Uses

type ItemStats struct {
    FlatHPPoolMod                       float64 `json:"FlatHPPoolMod"`
    RFlatHPModPerLevel                  float64 `json:"rFlatHPModPerLevel"`
    FlatMPPoolMod                       float64 `json:"FlatMPPoolMod"`
    RFlatMPModPerLevel                  float64 `json:"rFlatMPModPerLevel"`
    PercentHPPoolMod                    float64 `json:"PercentHPPoolMod"`
    PercentMPPoolMod                    float64 `json:"PercentMPPoolMod"`
    FlatHPRegenMod                      float64 `json:"FlatHPRegenMod"`
    RFlatHPRegenModPerLevel             float64 `json:"rFlatHPRegenModPerLevel"`
    PercentHPRegenMod                   float64 `json:"PercentHPRegenMod"`
    FlatMPRegenMod                      float64 `json:"FlatMPRegenMod"`
    RFlatMPRegenModPerLevel             float64 `json:"rFlatMPRegenModPerLevel"`
    PercentMPRegenMod                   float64 `json:"PercentMPRegenMod"`
    FlatArmorMod                        float64 `json:"FlatArmorMod"`
    RFlatArmorModPerLevel               float64 `json:"rFlatArmorModPerLevel"`
    PercentArmorMod                     float64 `json:"PercentArmorMod"`
    RFlatArmorPenetrationMod            float64 `json:"rFlatArmorPenetrationMod"`
    RFlatArmorPenetrationModPerLevel    float64 `json:"rFlatArmorPenetrationModPerLevel"`
    RPercentArmorPenetrationMod         float64 `json:"rPercentArmorPenetrationMod"`
    RPercentArmorPenetrationModPerLevel float64 `json:"rPercentArmorPenetrationModPerLevel"`
    FlatPhysicalDamageMod               float64 `json:"FlatPhysicalDamageMod"`
    RFlatPhysicalDamageModPerLevel      float64 `json:"rFlatPhysicalDamageModPerLevel"`
    PercentPhysicalDamageMod            float64 `json:"PercentPhysicalDamageMod"`
    FlatMagicDamageMod                  float64 `json:"FlatMagicDamageMod"`
    RFlatMagicDamageModPerLevel         float64 `json:"rFlatMagicDamageModPerLevel"`
    PercentMagicDamageMod               float64 `json:"PercentMagicDamageMod"`
    FlatMovementSpeedMod                float64 `json:"FlatMovementSpeedMod"`
    RFlatMovementSpeedModPerLevel       float64 `json:"rFlatMovementSpeedModPerLevel"`
    PercentMovementSpeedMod             float64 `json:"PercentMovementSpeedMod"`
    RPercentMovementSpeedModPerLevel    float64 `json:"rPercentMovementSpeedModPerLevel"`
    FlatAttackSpeedMod                  float64 `json:"FlatAttackSpeedMod"`
    PercentAttackSpeedMod               float64 `json:"PercentAttackSpeedMod"`
    RPercentAttackSpeedModPerLevel      float64 `json:"rPercentAttackSpeedModPerLevel"`
    RFlatDodgeMod                       float64 `json:"rFlatDodgeMod"`
    RFlatDodgeModPerLevel               float64 `json:"rFlatDodgeModPerLevel"`
    PercentDodgeMod                     float64 `json:"PercentDodgeMod"`
    FlatCritChanceMod                   float64 `json:"FlatCritChanceMod"`
    RFlatCritChanceModPerLevel          float64 `json:"rFlatCritChanceModPerLevel"`
    PercentCritChanceMod                float64 `json:"PercentCritChanceMod"`
    FlatCritDamageMod                   float64 `json:"FlatCritDamageMod"`
    RFlatCritDamageModPerLevel          float64 `json:"rFlatCritDamageModPerLevel"`
    PercentCritDamageMod                float64 `json:"PercentCritDamageMod"`
    FlatBlockMod                        float64 `json:"FlatBlockMod"`
    PercentBlockMod                     float64 `json:"PercentBlockMod"`
    FlatSpellBlockMod                   float64 `json:"FlatSpellBlockMod"`
    RFlatSpellBlockModPerLevel          float64 `json:"rFlatSpellBlockModPerLevel"`
    PercentSpellBlockMod                float64 `json:"PercentSpellBlockMod"`
    FlatEXPBonus                        float64 `json:"FlatEXPBonus"`
    PercentEXPBonus                     float64 `json:"PercentEXPBonus"`
    RPercentCooldownMod                 float64 `json:"rPercentCooldownMod"`
    RPercentCooldownModPerLevel         float64 `json:"rPercentCooldownModPerLevel"`
    RFlatTimeDeadMod                    float64 `json:"rFlatTimeDeadMod"`
    RFlatTimeDeadModPerLevel            float64 `json:"rFlatTimeDeadModPerLevel"`
    RPercentTimeDeadMod                 float64 `json:"rPercentTimeDeadMod"`
    RPercentTimeDeadModPerLevel         float64 `json:"rPercentTimeDeadModPerLevel"`
    RFlatGoldPer10Mod                   float64 `json:"rFlatGoldPer10Mod"`
    RFlatMagicPenetrationMod            float64 `json:"rFlatMagicPenetrationMod"`
    RFlatMagicPenetrationModPerLevel    float64 `json:"rFlatMagicPenetrationModPerLevel"`
    RPercentMagicPenetrationMod         float64 `json:"rPercentMagicPenetrationMod"`
    RPercentMagicPenetrationModPerLevel float64 `json:"rPercentMagicPenetrationModPerLevel"`
    FlatEnergyRegenMod                  float64 `json:"FlatEnergyRegenMod"`
    RFlatEnergyRegenModPerLevel         float64 `json:"rFlatEnergyRegenModPerLevel"`
    FlatEnergyPoolMod                   float64 `json:"FlatEnergyPoolMod"`
    RFlatEnergyModPerLevel              float64 `json:"rFlatEnergyModPerLevel"`
    PercentLifeStealMod                 float64 `json:"PercentLifeStealMod"`
    PercentSpellVampMod                 float64 `json:"PercentSpellVampMod"`
}

ItemStats contains information about the stats of an item

type LeagueEntry Uses

type LeagueEntry struct {
    Queue        string     `json:"queueType"`
    SummonerName string     `json:"summonerName"`
    HotStreak    bool       `json:"hotStreak"`
    MiniSeries   MiniSeries `json:"miniSeries"`
    Wins         int        `json:"wins"`
    Veteran      bool       `json:"veteran"`
    Losses       int        `json:"losses"`
    FreshBlood   bool       `json:"freshBlood"`
    Inactive     bool       `json:"inactive"`
    Rank         string     `json:"rank"`
    SummonerID   string     `json:"summonerId"`
    LeaguePoints int        `json:"leaguePoints"`
}

LeagueEntry represents a summoners ranked position in a league

type LeagueList Uses

type LeagueList struct {
    LeagueID string        `json:"leagueId"`
    Tier     string        `json:"tier"`
    Entries  []LeagueEntry `json:"entries"`
    Queue    string        `json:"queue"`
    Name     string        `json:"name"`
    // contains filtered or unexported fields
}

LeagueList represents a league containing all player entries in it

func (*LeagueList) GetRank Uses

func (l *LeagueList) GetRank(i int) LeagueEntry

GetRank returns the entry at the given rank, sorted by league points

type LegacyMastery Uses

type LegacyMastery struct {
    MasteryID int `json:"masteryId"`
    Rank      int `json:"rank"`
}

LegacyMastery represents the old masteries

type LobbyEvent Uses

type LobbyEvent struct {
    EventType  string `json:"eventType"`
    SummonerID string `json:"summonerId"`
    Timestamp  string `json:"timestamp"`
}

LobbyEvent represents an event that happened in a tournament lobby

type LobbyEventList Uses

type LobbyEventList struct {
    EventList []LobbyEvent `json:"eventList"`
}

LobbyEventList is a wrapper for a list of lobby events in a tournament

type Mastery Uses

type Mastery struct {
    ID           int       `json:"id"`
    Name         string    `json:"name"`
    Description  []string  `json:"description"`
    Image        ImageData `json:"image"`
    Ranks        int       `json:"ranks"`
    Prerequisite string    `json:"prereq"`
}

Mastery represents an old mastery

type Match Uses

type Match struct {
    // Please refer to the Game Constants documentation.
    SeasonID int `json:"seasonId"`
    // Please refer to the Game Constants documentation.
    QueueID int `json:"queueId"`
    GameID  int `json:"gameId"`
    // Participant identity information.
    ParticipantIdentities []ParticipantIdentity `json:"participantIdentities"`
    // The major.minor version typically indicates the patch the match was played on.
    GameVersion string `json:"gameVersion"`
    // Platform where the match was played.
    PlatformID string `json:"platformId"`
    // Please refer to the Game Constants documentation.
    GameMode string `json:"gameMode"`
    // Please refer to the Game Constants documentation.
    MapID int `json:"mapId"`
    // Please refer to the Game Constants documentation.
    GameType string `json:"gameType"`
    // Team information.
    Teams []TeamStats `json:"teams"`
    // Participant information.
    Participants []Participant `json:"participants"`
    // Match duration in seconds.
    GameDuration int `json:"gameDuration"`
    // Designates the timestamp when champion select ended and the loading screen appeared, NOT when the game timer was
    // at 0:00.
    GameCreation int `json:"gameCreation"`
}

Match contains information about a match

type MatchReference Uses

type MatchReference struct {
    Lane       string `json:"lane"`
    GameID     int    `json:"gameId"`
    Champion   int    `json:"champion"`
    PlatformID string `json:"platformId"`
    Season     int    `json:"season"`
    Queue      int    `json:"queue"`
    Role       string `json:"role"`
    Timestamp  int    `json:"timestamp"`
}

MatchReference contains information about a game by a single summoner

type Matchlist Uses

type Matchlist struct {
    Matches    []MatchReference `json:"matches"`
    TotalGames int              `json:"totalGames"`
    StartIndex int              `json:"startIndex"`
    EndIndex   int              `json:"endIndex"`
}

Matchlist contains information about all games played by a single summoner

type MiniSeries Uses

type MiniSeries struct {
    Progress string `json:"progress"`
    Losses   int    `json:"losses"`
    Target   int    `json:"target"`
    Wins     int    `json:"wins"`
}

MiniSeries represents a mini series when playing to ascend to the next ranked tier

type Observer Uses

type Observer struct {
    EncryptionKey string `json:"encryptionKey"`
}

Observer is an observer of an ongoing game

type Participant Uses

type Participant struct {
    // Participant statistics.
    Stats         ParticipantStats `json:"stats"`
    ParticipantID int              `json:"participantId"`
    // List of legacy Rune information. Not included for matches played with Runes Reforged.
    Runes []Rune `json:"runes"`
    // Participant timeline data.
    Timeline ParticipantTimeline `json:"timeline"`
    // 100 for blue side. 200 for red side.
    TeamID int `json:"teamId"`
    // Second Summoner Spell id.
    Spell2ID int `json:"spell2Id"`
    // List of legacy Mastery information. Not included for matches played with Runes Reforged.
    Masteries []LegacyMastery `json:"masteries"`
    // Highest ranked tier achieved for the previous season in a specific subset of queueIds, if any, otherwise null.
    // Used to display border in game loading screen. Please refer to the Ranked Info documentation.
    // (Legal values: CHALLENGER, MASTER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE, UNRANKED)
    HighestAchievedSeasonTier string `json:"highestAchievedSeasonTier"`
    // First Summoner Spell id.
    Spell1ID   int `json:"spell1Id"`
    ChampionID int `json:"championId"`
}

Participant represents a participant in a game

type ParticipantIdentity Uses

type ParticipantIdentity struct {
    // Player information.
    Player        Player `json:"player"`
    ParticipantID int    `json:"participantId"`
}

ParticipantIdentity contains a reference to a player for a participant in a game

type ParticipantStats Uses

type ParticipantStats struct {
    FirstBloodAssist            bool `json:"firstBloodAssist"`
    VisionScore                 int  `json:"visionScore"`
    MagicDamageDealtToChampions int  `json:"magicDamageDealtToChampions"`
    DamageDealtToObjectives     int  `json:"damageDealtToObjectives"`
    TotalTimeCrowdControlDealt  int  `json:"totalTimeCrowdControlDealt"`
    IntestTimeSpentLiving       int  `json:"intestTimeSpentLiving"`
    // Post game rune stats.
    Perk1Var1 int `json:"perk1Var1"`
    // Post game rune stats.
    Perk1Var3 int `json:"perk1Var3"`
    // Post game rune stats.
    Perk1Var2   int `json:"perk1Var2"`
    TripleKills int `json:"tripleKills"`
    // Post game rune stats.
    Perk3Var3            int `json:"perk3Var3"`
    NodeNeutralizeAssist int `json:"nodeNeutralizeAssist"`
    // Post game rune stats.
    Perk3Var2    int `json:"perk3Var2"`
    PlayerScore9 int `json:"playerScore9"`
    PlayerScore8 int `json:"playerScore8"`
    Kills        int `json:"kills"`
    PlayerScore1 int `json:"playerScore1"`
    PlayerScore0 int `json:"playerScore0"`
    PlayerScore3 int `json:"playerScore3"`
    PlayerScore2 int `json:"playerScore2"`
    PlayerScore5 int `json:"playerScore5"`
    PlayerScore4 int `json:"playerScore4"`
    PlayerScore7 int `json:"playerScore7"`
    PlayerScore6 int `json:"playerScore6"`
    // Post game rune stats.
    Perk5Var1 int `json:"perk5Var1"`
    // Post game rune stats.
    Perk5Var3 int `json:"perk5Var3"`
    // Post game rune stats.
    Perk5Var2                      int `json:"perk5Var2"`
    TotalScoreRank                 int `json:"totalScoreRank"`
    NeutralMinionsKilled           int `json:"neutralMinionsKilled"`
    DamageDealtToTurrets           int `json:"damageDealtToTurrets"`
    PhysicalDamageDealtToChampions int `json:"physicalDamageDealtToChampions"`
    NodeCapture                    int `json:"nodeCapture"`
    LargestMultiKill               int `json:"largestMultiKill"`
    // Post game rune stats.
    Perk2Var2 int `json:"perk2Var2"`
    // Post game rune stats.
    Perk2Var3        int `json:"perk2Var3"`
    TotalUnitsHealed int `json:"totalUnitsHealed"`
    // Post game rune stats.
    Perk2Var1 int `json:"perk2Var1"`
    // Post game rune stats.
    Perk4Var1 int `json:"perk4Var1"`
    // Post game rune stats.
    Perk4Var2 int `json:"perk4Var2"`
    // Post game rune stats.
    Perk4Var3                      int `json:"perk4Var3"`
    WardsKilled                    int `json:"wardsKilled"`
    LargestCriticalStrike          int `json:"largestCriticalStrike"`
    LargestKillingSpree            int `json:"largestKillingSpree"`
    QuadraKills                    int `json:"quadraKills"`
    TeamObjective                  int `json:"teamObjective"`
    MagicDamageDealt               int `json:"magicDamageDealt"`
    Item2                          int `json:"item2"`
    Item3                          int `json:"item3"`
    Item0                          int `json:"item0"`
    NeutralMinionsKilledTeamJungle int `json:"neutralMinionsKilledTeamJungle"`
    Item6                          int `json:"item6"`
    Item4                          int `json:"item4"`
    Item5                          int `json:"item5"`
    // Primary path rune.
    Perk1 int `json:"perk1"`
    // Primary path keystone rune.
    Perk0 int `json:"perk0"`
    // Primary path rune.
    Perk3 int `json:"perk3"`
    // Primary path rune.
    Perk2 int `json:"perk2"`
    // Secondary path rune.
    Perk5 int `json:"perk5"`
    // Secondary path rune.
    Perk4 int `json:"perk4"`
    // Post game rune stats.
    Perk3Var1           int  `json:"perk3Var1"`
    DamageSelfMitigated int  `json:"damageSelfMitigated"`
    MagicalDamageTaken  int  `json:"magicalDamageTaken"`
    FirstInhibitorKill  bool `json:"firstInhibitorKill"`
    TrueDamageTaken     int  `json:"trueDamageTaken"`
    NodeNeutralize      int  `json:"nodeNeutralize"`
    Assists             int  `json:"assists"`
    CombatPlayerScore   int  `json:"combatPlayerScore"`
    // Primary rune path
    PerkPrimaryStyle                int  `json:"perkPrimaryStyle"`
    GoldSpent                       int  `json:"goldSpent"`
    TrueDamageDealt                 int  `json:"trueDamageDealt"`
    ParticipantID                   int  `json:"participantId"`
    TotalDamageTaken                int  `json:"totalDamageTaken"`
    PhysicalDamageDealt             int  `json:"physicalDamageDealt"`
    SightWardsBoughtInGame          int  `json:"sightWardsBoughtInGame"`
    TotalDamageDealtToChampions     int  `json:"totalDamageDealtToChampions"`
    PhysicalDamageTaken             int  `json:"physicalDamageTaken"`
    TotalPlayerScore                int  `json:"totalPlayerScore"`
    Win                             bool `json:"win"`
    ObjectivePlayerScore            int  `json:"objectivePlayerScore"`
    TotalDamageDealt                int  `json:"totalDamageDealt"`
    Item1                           int  `json:"item1"`
    NeutralMinionsKilledEnemyJungle int  `json:"neutralMinionsKilledEnemyJungle"`
    Deaths                          int  `json:"deaths"`
    WardsPlaced                     int  `json:"wardsPlaced"`
    // Secondary rune path
    PerkSubStyle               int  `json:"perkSubStyle"`
    TurretKills                int  `json:"turretKills"`
    FirstBloodKill             bool `json:"firstBloodKill"`
    TrueDamageDealtToChampions int  `json:"trueDamageDealtToChampions"`
    GoldEarned                 int  `json:"goldEarned"`
    KillingSprees              int  `json:"killingSprees"`
    UnrealKills                int  `json:"unrealKills"`
    AltarsCaptured             int  `json:"altarsCaptured"`
    FirstTowerAssist           bool `json:"firstTowerAssist"`
    FirstTowerKill             bool `json:"firstTowerKill"`
    ChampLevel                 int  `json:"champLevel"`
    DoubleKills                int  `json:"doubleKills"`
    NodeCaptureAssist          int  `json:"nodeCaptureAssist"`
    InhibitorKills             int  `json:"inhibitorKills"`
    FirstInhibitorAssist       bool `json:"firstInhibitorAssist"`
    // Post game rune stats.
    Perk0Var1 int `json:"perk0Var1"`
    // Post game rune stats.
    Perk0Var2 int `json:"perk0Var2"`
    // Post game rune stats.
    Perk0Var3               int `json:"perk0Var3"`
    VisionWardsBoughtInGame int `json:"visionWardsBoughtInGame"`
    AltarsNeutralized       int `json:"altarsNeutralized"`
    PentaKills              int `json:"pentaKills"`
    TotalHeal               int `json:"totalHeal"`
    TotalMinionsKilled      int `json:"totalMinionsKilled"`
    TimeCCingOthers         int `json:"timeCCingOthers"`
}

ParticipantStats contains stats of a participant in a game

type ParticipantTimeline Uses

type ParticipantTimeline struct {
    // Participant's calculated lane. MID and BOT are legacy values.
    // (Legal values: MID, MIDDLE, TOP, JUNGLE, BOT, BOTTOM)
    Lane          string `json:"lane"`
    ParticipantID int    `json:"participantId"`
    // Creep score difference versus the calculated lane opponent(s) for a specified period.
    CsDiffPerMinDeltas map[string]float64 `json:"csDiffPerMinDeltas"`
    // Gold for a specified period.
    GoldPerMinDeltas map[string]float64 `json:"goldPerMinDeltas"`
    // Experience difference versus the calculated lane opponent(s) for a specified period.
    XpDiffPerMinDeltas map[string]float64 `json:"xpDiffPerMinDeltas"`
    // Creeps for a specified period.
    CreepsPerMinDeltas map[string]float64 `json:"creepsPerMinDeltas"`
    // Experience change for a specified period.
    XpPerMinDeltas map[string]float64 `json:"xpPerMinDeltas"`
    // Participant's calculated role. (Legal values: DUO, NONE, SOLO, DUO_CARRY, DUO_SUPPORT)
    Role string `json:"role"`
    // Damage taken difference versus the calculated lane opponent(s) for a specified period.
    DamageTakenDiffPerMinDeltas map[string]float64 `json:"damageTakenDiffPerMinDeltas"`
    // Damage taken for a specified period.
    DamageTakenPerMinDeltas map[string]float64 `json:"damageTakenPerMinDeltas"`
}

ParticipantTimeline contains timeline values for a participant in a game

type PassiveData Uses

type PassiveData struct {
    Name        string    `json:"name"`
    Description string    `json:"description"`
    Image       ImageData `json:"image"`
}

PassiveData contains information about a champions passive ability

type Perks Uses

type Perks struct {
    PerkStyle    int   `json:"perkStyle"`
    PerksIDs     []int `json:"perksIDs"`
    PerkSubStyle int   `json:"perkSubStyle"`
}

Perks represents the runes for a player in an ongoing game

type Player Uses

type Player struct {
    CurrentPlatformID string `json:"currentPlatformId"`
    SummonerName      string `json:"summonerName"`
    MatchHistoryURI   string `json:"matchHistoryUri"`
    // Original platformId.
    PlatformID string `json:"platformId"`
    // Player's current accountID (Encrypted)
    CurrentAccountID string `json:"currentAccountId"`
    ProfileIcon      int    `json:"profileIcon"`
    // Player's summonerID (Encrypted)
    SummonerID string `json:"summonerId"`
    // Player's original accountID (Encrypted)
    AccountID string `json:"accountId"`
}

Player represents a player

type ProfileIcon Uses

type ProfileIcon struct {
    ID    int       `json:"id"`
    Image ImageData `json:"image"`
}

ProfileIcon represents a profile icon

type ProviderRegistrationParameters Uses

type ProviderRegistrationParameters struct {
    // The provider's callback URL to which tournament game results in this region should be posted. The URL must be
    // well-formed, use the http or https protocol, and use the default port for the protocol (http URLs must use port
    // 80, https URLs must use port 443).
    URL string `json:"url"`
    // The region in which the provider will be running tournaments.
    // (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
    Region string `json:"region"`
}

ProviderRegistrationParameters parameters required for registering a provider with tournaments for a region

type RecommendedItem Uses

type RecommendedItem struct {
    ID        string `json:"id"`
    Count     int    `json:"count"`
    HideCount bool   `json:"hideCount"`
}

RecommendedItem represents an item in a recommended set

type RecommendedItemData Uses

type RecommendedItemData struct {
    Champion      string               `json:"champion"`
    Title         string               `json:"title"`
    Map           string               `json:"map"`
    Mode          string               `json:"mode"`
    CustomTag     string               `json:"customTag"`
    SortRank      int                  `json:"sortrank"`
    ExtensionPage bool                 `json:"extensionPage"`
    CustomPanel   interface{}          `json:"customPanel"`
    Blocks        []RecommendedItemSet `json:"blocks"`
}

RecommendedItemData a build recommended for a champion

type RecommendedItemSet Uses

type RecommendedItemSet struct {
    Type                string            `json:"type"`
    RecMath             bool              `json:"recMath"`
    RecSteps            bool              `json:"recSteps"`
    MinSummonerLevel    int               `json:"minSummonerLevel"`
    MaxSummonerLevel    int               `json:"maxSummonerLevel"`
    ShowIfSummonerSpell string            `json:"showIfSummonerSpell"`
    HideIfSummonerSpell string            `json:"hideIfSummonerSpell"`
    Items               []RecommendedItem `json:"items"`
}

RecommendedItemSet is a set of items used in a recommended build

type Rune Uses

type Rune struct {
    RuneID int `json:"runeId"`
    Rank   int `json:"rank"`
}

Rune represents an old rune

type Service Uses

type Service struct {
    Status    string     `json:"status"`
    Incidents []Incident `json:"incidents"`
    Name      string     `json:"name"`
    Slug      string     `json:"slug"`
}

Service is a service provided by Riot with its status

type SkinData Uses

type SkinData struct {
    ID      string `json:"id"`
    Num     int    `json:"num"`
    Name    string `json:"name"`
    Chromas bool   `json:"chromas"`
}

SkinData contains information about a skin for a champion

type SpellData Uses

type SpellData struct {
    ID          string `json:"id"`
    Name        string `json:"name"`
    Description string `json:"abstract"`
    Tooltip     string `json:"tooltip"`
    Leveltip    struct {
        Label  []string `json:"label"`
        Effect []string `json:"effect"`
    }   `json:"leveltip"`
    MaxRank      int         `json:"maxrank"`
    Cooldown     []float64   `json:"cooldown"`
    CooldownBurn string      `json:"cooldownBurn"`
    Cost         []float64   `json:"cost"`
    CostBurn     string      `json:"costBurn"`
    Effect       [][]float64 `json:"effect"`
    EffectBurn   []string    `json:"effectBurn"`
    Vars         []struct {
        Link        string  `json:"link"`
        Coefficient float64 `json:"coeff"`
        Key         string  `json:"key"`
    }   `json:"vars"`
    CostType  string    `json:"costType"`
    MaxAmmo   string    `json:"maxammo"`
    Range     []float64 `json:"range"`
    RangeBurn string    `json:"rangeBurn"`
    Image     ImageData `json:"image"`
    Resource  string    `json:"resource"`
}

SpellData contains information about a champions spell

type Status Uses

type Status struct {
    Name      string    `json:"name"`
    RegionTag string    `json:"region_tag"`
    Hostname  string    `json:"hostname"`
    Services  []Service `json:"services"`
    Slug      string    `json:"slug"`
    Locales   []string  `json:"locales"`
}

Status contains information about all services in a certain region

type StatusMessage Uses

type StatusMessage struct {
    Severity     string              `json:"severity"`
    Author       string              `json:"author"`
    CreatedAt    string              `json:"created_at"`
    Translations []StatusTranslation `json:"translations"`
    UpdatedAt    string              `json:"updated_at"`
    Content      string              `json:"content"`
    ID           string              `json:"id"`
}

StatusMessage contains information about a status message

type StatusTranslation Uses

type StatusTranslation struct {
    Locale    string `json:"locale"`
    Content   string `json:"content"`
    UpdatedAt string `json:"updated_at"`
}

StatusTranslation contains the status message content in a certain language

type Summoner Uses

type Summoner struct {
    ProfileIconID int    `json:"profileIconId"`
    Name          string `json:"name"`
    PUUID         string `json:"puuid"`
    SummonerLevel int    `json:"summonerLevel"`
    RevisionDate  int    `json:"revisionDate"`
    ID            string `json:"id"`
    AccountID     string `json:"accountId"`
}

Summoner represents a summoner with several related IDs

type SummonerSpell Uses

type SummonerSpell struct {
    ID           string    `json:"id"`
    Name         string    `json:"name"`
    Description  string    `json:"description"`
    Tooltip      string    `json:"tooltip"`
    MaxRank      int       `json:"maxrank"`
    Cooldown     []float64 `json:"cooldown"`
    CooldownBurn string    `json:"cooldownBurn"`
    Cost         []float64 `json:"cost"`
    CostBurn     string    `json:"costBurn"`
    Vars         []struct {
        Link        string      `json:"link"`
        Coefficient interface{} `json:"coeff"`
        Key         string      `json:"key"`
    }   `json:"vars"`
    Key           string    `json:"key"`
    SummonerLevel int       `json:"summonerLevel"`
    Modes         []string  `json:"modes"`
    CostType      string    `json:"costType"`
    MaxAmmo       string    `json:"maxammo"`
    Range         []float64 `json:"range"`
    RangeBurn     string    `json:"rangeBurn"`
    Image         ImageData `json:"image"`
    Resource      string    `json:"resource"`
}

SummonerSpell represents a summoner spell

type TeamBan Uses

type TeamBan struct {
    // Turn during which the champion was banned.
    PickTurn int `json:"pickTurn"`
    // Banned championId.
    ChampionID int `json:"championId"`
}

TeamBan is a champion banned by a team

type TeamStats Uses

type TeamStats struct {
    // Flag indicating whether or not the team scored the first Dragon kill.
    FirstDragon bool `json:"firstDragon"`
    // Flag indicating whether or not the team destroyed the first inhibitor.
    FirstInhibitor bool `json:"firstInhibitor"`
    // If match queueID has a draft, contains banned champion data, otherwise empty.
    Bans []TeamBan `json:"bans"`
    // Number of times the team killed Baron.
    BaronKills int `json:"baronKills"`
    // Flag indicating whether or not the team scored the first Rift Herald kill.
    FirstRiftHerald bool `json:"firstRiftHerald"`
    // Flag indicating whether or not the team scored the first Baron kill.
    FirstBaron bool `json:"firstBaron"`
    // Number of times the team killed Rift Herald.
    RiftHeraldKills int `json:"riftHeraldKills"`
    // Flag indicating whether or not the team scored the first blood.
    FirstBlood bool `json:"firstBlood"`
    // 100 for blue side. 200 for red side.
    TeamID int `json:"teamId"`
    // Flag indicating whether or not the team destroyed the first tower.
    FirstTower bool `json:"firstTower"`
    // Number of times the team killed Vilemaw.
    VilemawKills int `json:"vilemawKills"`
    // Number of inhibitors the team destroyed.
    InhibitorKills int `json:"inhibitorKills"`
    // Number of towers the team destroyed.
    TowerKills int `json:"towerKills"`
    // For Dominion matches, specifies the points the team had at game end.
    DominionVictoryScore int `json:"dominionVictoryScore"`
    // string indicating whether or not the team won. There are only two values visibile in public match history.
    // (Legal values: Fail, Win)
    Win string `json:"win"`
    // Number of times the team killed Dragon.
    DragonKills int `json:"dragonKills"`
}

TeamStats represents the stats of a team for a single game

type Tournament Uses

type Tournament struct {
    Map          string   `json:"map"`
    Code         string   `json:"code"`
    Spectators   string   `json:"spectators"`
    Region       string   `json:"region"`
    ProviderID   int      `json:"providerId"`
    TeamSize     int      `json:"teamSize"`
    Participants []string `json:"participants"`
    PickType     string   `json:"pickType"`
    TournamentID int      `json:"tournamentId"`
    LobbyName    string   `json:"lobbyName"`
    Password     string   `json:"password"`
    ID           int      `json:"id"`
    MetaData     string   `json:"metaData"`
}

Tournament contains the settings of a previously created tournament

type TournamentCodeParameters Uses

type TournamentCodeParameters struct {
    // The spectator type of the game. (Legal values: NONE, LOBBYONLY, ALL)
    SpectatorType string `json:"spectatorType"`
    // The team size of the game. Valid values are 1-5.
    TeamSize int `json:"teamSize"`
    // The pick type of the game. (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
    PickType string `json:"pickType"`
    // Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby.
    // NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and
    // teamTwo. We may add the ability to enforce at the team level in the future.
    AllowedSummonerIDs []string `json:"allowedSummonerIds"`
    // The map type of the game. (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
    MapType string `json:"mapType"`
    // Optional string that may contain any data in any format, if specified at all. Used to denote any custom
    // information about the game.
    Metadata string `json:"metadata"`
}

TournamentCodeParameters parameters needed to create tournament codes

type TournamentRegistrationParameters Uses

type TournamentRegistrationParameters struct {
    // The provider ID to specify the regional registered provider data to associate this tournament.
    ProviderID int `json:"providerId"`
    // The optional name of the tournament.
    Name string `json:"name"`
}

TournamentRegistrationParameters parameters required for creating a tournament

type TournamentUpdateParameters Uses

type TournamentUpdateParameters struct {
    // The spectator type (Legal values: NONE, LOBBYONLY, ALL)
    SpectatorType string `json:"spectatorType"`
    // The pick type (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
    PickType string `json:"pickType"`
    // Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby.
    // NOTE: Participants are not enforced at the team level, but rather the aggregate of teamOne and teamTwo.
    AllowedSummonerIDs []string `json:"allowedSummonerIds"`
    // The map type (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
    MapType string `json:"mapType"`
}

TournamentUpdateParameters parameters needed to update an existing tournament

Package model imports 1 packages (graph) and is imported by 1 packages. Updated 2019-07-28. Refresh now. Tools for package owners.