Documentation ¶
Overview ¶
dal
Index ¶
- func Close()
- func Connect(config DbConfig) error
- func GetMatchHistory(apiKey string, account_id uint32, startMatchId uint64, count uint16, ...) error
- type AbilityUpgrades
- type AdditionalUnits
- type DALContext
- func (ctx DALContext) AddMatch(match *MatchDetailsResult)
- func (ctx DALContext) Close() (err error)
- func (ctx DALContext) GetMatchDetails(apiKey string, matchId uint64, result *MatchDetailsResult) error
- func (ctx DALContext) GetNeedUpdateAccounts() (error, *list.List)
- func (ctx DALContext) NeedMatch(id uint64) error
- type DbConfig
- type Match
- type MatchDetailsResult
- type MatchHistoryResult
- type PicksBans
- type Player
- type PlayerEx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMatchHistory ¶
Types ¶
type AbilityUpgrades ¶
type AdditionalUnits ¶
type DALContext ¶
type DALContext struct {
// contains filtered or unexported fields
}
func Begin ¶
func Begin() (ctx DALContext, err error)
func (DALContext) AddMatch ¶
func (ctx DALContext) AddMatch(match *MatchDetailsResult)
func (DALContext) Close ¶
func (ctx DALContext) Close() (err error)
func (DALContext) GetMatchDetails ¶
func (ctx DALContext) GetMatchDetails(apiKey string, matchId uint64, result *MatchDetailsResult) error
func (DALContext) GetNeedUpdateAccounts ¶
func (ctx DALContext) GetNeedUpdateAccounts() (error, *list.List)
func (DALContext) NeedMatch ¶
func (ctx DALContext) NeedMatch(id uint64) error
type MatchDetailsResult ¶
type MatchDetailsResult struct { Result struct { Players []PlayerEx `json:"players"` Season uint64 `json:"season"` RadiantWin bool `json:"radiant_win"` Durration uint32 `json:"duration"` StartTime uint32 `json:"start_time"` MatchID uint64 `json:"match_id"` MatchSeq uint64 `json:"match_seq_num"` TowerStatusRadiant uint16 `json:"tower_status_radiant"` TowerStatusDire uint16 `json:"tower_status_dire"` BarracksStatusRadiant uint8 `json:"barracks_status_radiant"` BarracksStatusDire uint8 `json:"barracks_status_dire"` Cluster uint32 `json:"cluster"` FirstBloodTime uint32 `json:"first_blood_time"` LobbyType uint8 `json:"lobby_type"` HumanPlayers uint8 `json:"human_players"` LeagueId uint32 `json:"leagueid"` PositiveVotes uint32 `json:"positive_votes"` NegativeVotes uint32 `json:"negative_votes"` GameMode uint8 `json:"game_mode"` PicksBans []PicksBans `json:"picks_bans"` RadiantCaptain uint64 `json:"radiant_captain"` DireCaptain uint64 `json:"dire_captain"` RadiantTeamId uint64 `json:"radiant_team_id"` RadiantName string `json:"radiant_name"` RadiantLogo uint64 `json:"radiant_logo"` RadiantTeamComplete uint8 `json:"radiant_team_complete"` DireTeamId uint64 `json:"dire_team_id"` DireName string `json:"dire_name"` DireLogo uint64 `json:"dire_logo"` DireTeamComplete uint8 `json:"dire_team_complete"` } }
type MatchHistoryResult ¶
type PlayerEx ¶
type PlayerEx struct { AccountId uint32 `json:"account_id"` Player_slot uint8 `json:"player_slot"` Hero_id uint8 `json:"hero_id"` Item_0 uint16 `json:"item_0"` Item_1 uint16 `json:"item_1"` Item_2 uint16 `json:"item_2"` Item_3 uint16 `json:"item_3"` Item_4 uint16 `json:"item_4"` Item_5 uint16 `json:"item_5"` Kills uint8 `json:"kills"` Deaths uint8 `json:"deaths"` Assists uint8 `json:"assists"` Leaver_status uint8 `json:"leaver_status"` Gold uint32 `json:"gold"` Last_hits uint16 `json:"last_hits"` Denies uint8 `json:"denies"` Gold_per_min uint16 `json:"gold_per_min"` Xp_per_min uint16 `json:"xp_per_min"` Gold_spent uint32 `json:"gold_spent"` Hero_damage uint32 `json:"hero_damage"` Tower_damage uint32 `json:"tower_damage"` Hero_healing uint32 `json:"hero_healing"` Level uint8 `json:"level"` Ability_upgrades []AbilityUpgrades `json:"ability_upgrades"` Additional_units []AdditionalUnits `json:"additional_units"` }
Click to show internal directories.
Click to hide internal directories.