Documentation
¶
Overview ¶
Package golol is a library that provides a means of connecting and recieving data from Riot's League of Legend Servers
Index ¶
- Constants
- Variables
- func ChangeClientVersion(version string)
- func ChangePort(newPort int)
- func GetLeagueID(summonerName string) (int, error)
- func GetRunePages(leagueID int) bool
- type LeagueConnection
- type LeaguePool
- func (pool LeaguePool) GetNextConnection() (client LeagueConnection, err error)
- func (pool LeaguePool) GetSummonerByName(summonerName string) (summoner Summoner, err error)
- func (pool LeaguePool) GetSummonerRunePages(summonerID int) (runePages []RunePage, err error)
- func (pool LeaguePool) GetSummonerRunePages2(summonerID int)
- type LoginInfo
- type Rune
- type RunePage
- type RuneSlot
- type Summoner
Constants ¶
View Source
const ( RedID = 1 YellowID = 3 BlueID = 5 QuintID = 7 )
Variables ¶
View Source
var (
ClientVersion = "3.15.13_12_13_16_07"
)
Might need to worry about ClientVersion being different on different Server
Functions ¶
func ChangeClientVersion ¶
func ChangeClientVersion(version string)
func ChangePort ¶
func ChangePort(newPort int)
func GetLeagueID ¶
func GetRunePages ¶
Types ¶
type LeagueConnection ¶
type LeagueConnection struct {
// contains filtered or unexported fields
}
func New ¶
func New(serverName, username, password string) (LeagueConnection, error)
func (LeagueConnection) GetSummonerByName ¶
func (client LeagueConnection) GetSummonerByName(summonerName string) (summoner Summoner, err error)
func (LeagueConnection) GetSummonerRunePages ¶
func (client LeagueConnection) GetSummonerRunePages(summonerID int) (runePages []RunePage, err error)
func (LeagueConnection) GetSummonerRunePages2 ¶
func (client LeagueConnection) GetSummonerRunePages2(summonerID int)
type LeaguePool ¶
type LeaguePool chan LeagueConnection
func NewPool ¶
func NewPool(loginInfo ...LoginInfo) LeaguePool
func (LeaguePool) GetNextConnection ¶
func (pool LeaguePool) GetNextConnection() (client LeagueConnection, err error)
func (LeaguePool) GetSummonerByName ¶
func (pool LeaguePool) GetSummonerByName(summonerName string) (summoner Summoner, err error)
func (LeaguePool) GetSummonerRunePages ¶
func (pool LeaguePool) GetSummonerRunePages(summonerID int) (runePages []RunePage, err error)
func (LeaguePool) GetSummonerRunePages2 ¶
func (pool LeaguePool) GetSummonerRunePages2(summonerID int)
Click to show internal directories.
Click to hide internal directories.