Documentation ¶
Index ¶
- Constants
- func GET(uri string) (resp []byte, err error)
- func GetChampionById(id int) model.Champion
- func GetCurrentSummoner() (data model.Summoner, err error)
- func GetItemById(id int) model.Item
- func GetMatchDetailsByGameId(gameId int) (data model.MatchData, err error)
- func GetMatchHistoryByPuuid(puuid string, begI, endI int) (data model.MatchHistory, err error)
- func GetPerkById(id int) model.Perk
- func GetPerkStyleById(id int) model.PerkStyle
- func GetProfileIconById(id int) model.ProfileIcon
- func GetQueueById(id int) model.Queue
- func GetRankedStatsByPuuid(puuid string) (data model.RankedStats, err error)
- func GetSpellById(id int) model.Spell
- func GetSummonerByName(name string) (data model.Summoner, err error)
- func GetUxProcessByPsutil() (*process.Process, error)
- func GetUxProcessCommandlineMapByCmd() (mp map[string]string, err error)
- func POST(uri string, body interface{}) (resp []byte, err error)
- func Start(startCbs ...func() error) (chan error, error)
- type AssetsManager
- func (a *AssetsManager) Fill(data interface{}) (err error)
- func (a *AssetsManager) GetChampionById(id int) model.Champion
- func (a *AssetsManager) GetItemById(id int) model.Item
- func (a *AssetsManager) GetPerkById(id int) model.Perk
- func (a *AssetsManager) GetPerkStyleById(id int) model.PerkStyle
- func (a *AssetsManager) GetProfileIconById(id int) model.ProfileIcon
- func (a *AssetsManager) GetQueueById(id int) model.Queue
- func (a *AssetsManager) GetSpellById(id int) model.Spell
- func (a *AssetsManager) GetTierByName(name string) model.Tier
- func (a *AssetsManager) Init() (err error)
- type Driver
- type EventHandler
- type IHandler
- type Inquirer
- func (c *Inquirer) Delete(uri string) (resp *resty.Response, err error)
- func (c *Inquirer) Get(uri string) (resp *resty.Response, err error)
- func (c *Inquirer) Patch(uri string, body interface{}) (resp *resty.Response, err error)
- func (c *Inquirer) Post(uri string, body interface{}) (resp *resty.Response, err error)
- func (c *Inquirer) Put(uri string, body interface{}) (resp *resty.Response, err error)
- func (c *Inquirer) Request(method, uri string, body interface{}) (resp *resty.Response, err error)
- type PrintHandler
- type Watcher
Constants ¶
View Source
const MaxTickTimes = 10
View Source
const (
OnJsonApiEventPrefixLen = len(`[8,"OnJsonApiEvent",`)
)
Variables ¶
This section is empty.
Functions ¶
func GetChampionById ¶
func GetCurrentSummoner ¶
func GetItemById ¶
func GetMatchDetailsByGameId ¶
func GetMatchHistoryByPuuid ¶
func GetMatchHistoryByPuuid(puuid string, begI, endI int) (data model.MatchHistory, err error)
func GetPerkById ¶
func GetPerkStyleById ¶
func GetProfileIconById ¶
func GetProfileIconById(id int) model.ProfileIcon
func GetQueueById ¶
func GetRankedStatsByPuuid ¶
func GetRankedStatsByPuuid(puuid string) (data model.RankedStats, err error)
func GetSpellById ¶
func GetUxProcessByPsutil ¶
Types ¶
type AssetsManager ¶
type AssetsManager struct {
// contains filtered or unexported fields
}
func AssetsManagerInstance ¶
func AssetsManagerInstance() *AssetsManager
func (*AssetsManager) Fill ¶
func (a *AssetsManager) Fill(data interface{}) (err error)
func (*AssetsManager) GetChampionById ¶
func (a *AssetsManager) GetChampionById(id int) model.Champion
func (*AssetsManager) GetItemById ¶
func (a *AssetsManager) GetItemById(id int) model.Item
func (*AssetsManager) GetPerkById ¶
func (a *AssetsManager) GetPerkById(id int) model.Perk
func (*AssetsManager) GetPerkStyleById ¶
func (a *AssetsManager) GetPerkStyleById(id int) model.PerkStyle
func (*AssetsManager) GetProfileIconById ¶
func (a *AssetsManager) GetProfileIconById(id int) model.ProfileIcon
func (*AssetsManager) GetQueueById ¶
func (a *AssetsManager) GetQueueById(id int) model.Queue
func (*AssetsManager) GetSpellById ¶
func (a *AssetsManager) GetSpellById(id int) model.Spell
func (*AssetsManager) GetTierByName ¶
func (a *AssetsManager) GetTierByName(name string) model.Tier
func (*AssetsManager) Init ¶
func (a *AssetsManager) Init() (err error)
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler() *EventHandler
func (*EventHandler) Handle ¶
func (h *EventHandler) Handle(binData []byte) (err error)
type Inquirer ¶
type Inquirer struct {
*resty.Client
}
func NewInquirer ¶
type PrintHandler ¶
type PrintHandler struct{}
func (*PrintHandler) Handle ¶
func (h *PrintHandler) Handle(data []byte) error
type Watcher ¶
Watcher is used to watch the LOL Client events
func NewWatcher ¶
func (*Watcher) SetHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.