Documentation ¶
Index ¶
- Constants
- type API
- func (a *API) Get(e string, params url.Values) (*http.Response, error)
- func (a *API) GetActivePlayer() (ActivePlayer, error)
- func (a *API) GetActivePlayerAbilities() (Abilities, error)
- func (a *API) GetActivePlayerName() (string, error)
- func (a *API) GetActivePlayerRunes() (FullRunes, error)
- func (a *API) GetAllGameData() (AllGameData, error)
- func (a *API) GetAllPlayers() ([]Player, error)
- func (a *API) GetEvents() (Events, error)
- func (a *API) GetGameData() (GameData, error)
- func (a *API) GetPlayerItems(playerName string) ([]Item, error)
- func (a *API) GetPlayerMainRunes(playerName string) (Runes, error)
- func (a *API) GetPlayerScores(playerName string) (Scores, error)
- func (a *API) GetPlayerSummonerSpells(playerName string) (SummonerSpells, error)
- func (a *API) HTTPClient(c *http.Client) *API
- type APIError
- type Abilities
- type Ability
- type ActivePlayer
- type AllGameData
- type ChampionStats
- type Event
- type Events
- type FullRunes
- type GameData
- type Item
- type Player
- type Rune
- type Runes
- type Scores
- type SummonerSpell
- type SummonerSpells
Constants ¶
View Source
const LIVE_CLIENT_DATA_URL string = "https://127.0.0.1:2999/liveclientdata"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetActivePlayer ¶
func (a *API) GetActivePlayer() (ActivePlayer, error)
GetActivePlayer gets all data about the active player.
func (*API) GetActivePlayerAbilities ¶
GetActivePlayerAbilities gets Abilities for the active player.
func (*API) GetActivePlayerName ¶
GetActivePlayerName returns the player name.
func (*API) GetActivePlayerRunes ¶
GetActivePlayerRunes retrieves the full list of runes for the active player.
func (*API) GetAllGameData ¶
func (a *API) GetAllGameData() (AllGameData, error)
func (*API) GetAllPlayers ¶
GetAllPlayers retrieves the list of heroes in the game and their stats.
func (*API) GetGameData ¶
GetGameData gets basic data about the game.
func (*API) GetPlayerItems ¶
GetPlayerItems retrieves the list of items for the player.
func (*API) GetPlayerMainRunes ¶
GetPlayerMainRunes retrieves the basic runes of any player.
func (*API) GetPlayerScores ¶
GetPlayerScores retrieves the list of the current scores for the player.
func (*API) GetPlayerSummonerSpells ¶
func (a *API) GetPlayerSummonerSpells(playerName string) (SummonerSpells, error)
GetPlayerSummonerSpells retrieves the list of the summoner spells for the player.
type ActivePlayer ¶
type AllGameData ¶
type AllGameData struct { ActivePlayer ActivePlayer `json:"activePlayer"` AllPlayers []Player `json:"allPlayers"` Events Events `json:"events"` GameData GameData `json:"gameData"` }
type ChampionStats ¶
type ChampionStats struct { AbilityHaste float64 `json:"abilityHaste"` AbilityPower float64 `json:"abilityPower"` Armor float64 `json:"armor"` ArmorPenetrationFlat float64 `json:"armorPenetrationFlat"` ArmorPenetrationPercent float64 `json:"armorPenetrationPercent"` AttackDamage float64 `json:"attackDamage"` AttackRange float64 `json:"attackRange"` AttackSpeed float64 `json:"attackSpeed"` BonusArmorPenetrationPercent float64 `json:"bonusArmorPenetrationPercent"` BonusMagicPenetrationPercent float64 `json:"bonusMagicPenetrationPercent"` CritChance float64 `json:"critChance"` CritDamage float64 `json:"critDamage"` CurrentHealth float64 `json:"currentHealth"` HealthRegenRate float64 `json:"healthRegenRate"` LifeSteal float64 `json:"lifeSteal"` MagicLethality float64 `json:"magicLethality"` MagicPenetrationFlat float64 `json:"magicPenetrationFlat"` MagicPenetrationPercent float64 `json:"magicPenetrationPercent"` MagicResist float64 `json:"magicResist"` MaxHealth float64 `json:"maxHealth"` MoveSpeed float64 `json:"moveSpeed"` PhysicalLethality float64 `json:"physicalLethality"` ResourceMax float64 `json:"resourceMax"` ResourceRegenRate float64 `json:"resourceRegenRate"` ResourceType string `json:"resourceType"` ResourceValue float64 `json:"resourceValue"` SpellVamp float64 `json:"spellVamp"` Tenacity float64 `json:"tenacity"` }
type Event ¶
type Event struct { EventID int `json:"EventID"` EventName string `json:"EventName"` EventTime float64 `json:"EventTime"` Assisters []string `json:"Assisters,omitempty"` DragonType string `json:"DragonType,omitempty"` KillerName string `json:"KillerName,omitempty"` Recipient string `json:"Recipient,omitempty"` Stolen string `json:"Stolen,omitempty"` TurretKilled string `json:"TurretKilled,omitempty"` VictimName string `json:"VictimName,omitempty"` }
type Item ¶
type Item struct { CanUse bool `json:"canUse"` Consumable bool `json:"consumable"` Count int `json:"count"` DisplayName string `json:"displayName"` ItemID int `json:"itemID"` Price int `json:"price"` RawDescription string `json:"rawDescription"` RawDisplayName string `json:"rawDisplayName"` Slot int `json:"slot"` }
type Player ¶
type Player struct { ChampionName string `json:"championName"` IsBot bool `json:"isBot"` IsDead bool `json:"isDead"` Items []Item `json:"items"` Level int `json:"level"` Position string `json:"position"` RawChampionName string `json:"rawChampionName"` RespawnTimer float64 `json:"respawnTimer"` Runes Runes `json:"runes"` Scores Scores `json:"scores"` SkinID int `json:"skinID"` SummonerName string `json:"summonerName"` SummonerSpells SummonerSpells `json:"summonerSpells"` Team string `json:"team"` }
type SummonerSpell ¶
type SummonerSpells ¶
type SummonerSpells struct { SummonerSpellOne SummonerSpell `json:"summonerSpellOne"` SummonerSpellTwo SummonerSpell `json:"summonerSpellTwo"` }
Click to show internal directories.
Click to hide internal directories.