Documentation ¶
Overview ¶
Makes calls to the LoL in-game client to get data.
Index ¶
- Constants
- func Get(endpoint string) (*http.Response, error)
- func GetActivePlayerName() (*string, error)
- func GetEndPoints() ([]string, error)
- func GetPEM() (*x509.CertPool, error)
- func GetPlayerItems(playerName string) (*[]Item, error)
- func GetPlayerList() (*[]Player, error)
- func GetPlayerSummonerSpells(playerName string) (*struct{ SummonerSpellOne, SummonerSpellTwo DataEntry }, error)
- func GetRead(endpoint string) ([]byte, error)
- type Abilities
- type Ability
- type ActivePlayer
- type AllGameData
- type DataEntry
- type Event
- type Events
- type GameStats
- type Item
- type Player
- type Runes
- type Scores
Constants ¶
View Source
const ( EndpointActivePlayer = "/liveclientdata/activeplayer" EndpointActivePlayerAbilities = "/liveclientdata/activeplayerabilities" EndpointActivePlayerName = "/liveclientdata/activeplayername" EndpointActivePlayerRunes = "/liveclientdata/activeplayerrunes" EndpointAllGameData = "/liveclientdata/allgamedata" EndpointEventData = "/liveclientdata/eventdata" EndpointGameStats = "/liveclientdata/gamestats" EndpointPlayerItems = "/liveclientdata/playeritems" EndpointPlayerList = "/liveclientdata/playerlist" EndpointPlayerMainRunes = "/liveclientdata/playermainrunes" EndpointPlayerScores = "/liveclientdata/playerscores" EndpointPlayerSummonerSpells = "/liveclientdata/playersummonerspells" )
View Source
const Root = "https://127.0.0.1:2999"
Variables ¶
This section is empty.
Functions ¶
func GetActivePlayerName ¶
func GetEndPoints ¶
func GetPlayerItems ¶
func GetPlayerList ¶
func GetPlayerSummonerSpells ¶
Types ¶
type Abilities ¶
type Abilities struct{ Passive, Q, W, E, R Ability }
type ActivePlayer ¶
type ActivePlayer struct { Abilities Abilities ChampionStats map[string]interface{} // floats or strings CurrentGold float64 FullRunes Runes Level int SummonerName string TeamRelativeColors bool }
func GetActivePlayer ¶
func GetActivePlayer() (*ActivePlayer, error)
type AllGameData ¶
type AllGameData struct { ActivePlayer ActivePlayer AllPlayers []Player Events Events GameData GameStats }
func GetAllGameData ¶
func GetAllGameData() (*AllGameData, error)
type DataEntry ¶
type DataEntry struct { ID interface{} // string or int DisplayName, RawDescription, RawDisplayName string }
type GameStats ¶
func GetGameStats ¶
type Runes ¶
type Runes struct {
GeneralRunes, StatRunes []DataEntry
Keystone, PrimaryRuneTree, SecondaryRuneTree DataEntry
}
func GetActivePlayerRunes ¶
func GetPlayerMainRunes ¶
Click to show internal directories.
Click to hide internal directories.