dota

package
v0.0.0-...-4d6a1d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timer = "15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetHeroes

type GetHeroes struct {
	Result struct {
		Heroes []struct {
			Name          string `json:"name"`
			ID            int    `json:"id"`
			LocalizedName string `json:"localized_name"`
		} `json:"heroes"`
		Status int `json:"status"`
		Count  int `json:"count"`
	} `json:"result"`
}

type LeagueGames

type LeagueGames struct {
	Result struct {
		Games []struct {
			Players []struct {
				AccountID int    `json:"account_id"`
				Name      string `json:"name"`
				HeroID    int    `json:"hero_id"`
				Team      int    `json:"team"`
			} `json:"players"`
			LobbyID           int64   `json:"lobby_id"`
			MatchID           int64   `json:"match_id"`
			Spectators        int     `json:"spectators"`
			SeriesID          int     `json:"series_id"`
			GameNumber        int     `json:"game_number"`
			LeagueID          int     `json:"league_id"`
			StreamDelayS      float64 `json:"stream_delay_s"`
			RadiantSeriesWins int     `json:"radiant_series_wins"`
			DireSeriesWins    int     `json:"dire_series_wins"`
			SeriesType        int     `json:"series_type"`
			LeagueSeriesID    int     `json:"league_series_id"`
			LeagueGameID      int     `json:"league_game_id"`
			StageName         string  `json:"stage_name"`
			LeagueTier        int     `json:"league_tier"`
			Scoreboard        struct {
				Duration           float64 `json:"duration"`
				RoshanRespawnTimer int     `json:"roshan_respawn_timer"`
				Radiant            struct {
					Score         int `json:"score"`
					TowerState    int `json:"tower_state"`
					BarracksState int `json:"barracks_state"`
					Picks         []struct {
						HeroID int `json:"hero_id"`
					} `json:"picks"`
					Bans []struct {
						HeroID int `json:"hero_id"`
					} `json:"bans"`
					Players []struct {
						PlayerSlot       int     `json:"player_slot"`
						AccountID        int     `json:"account_id"`
						HeroID           int     `json:"hero_id"`
						Kills            int     `json:"kills"`
						Death            int     `json:"death"`
						Assists          int     `json:"assists"`
						LastHits         int     `json:"last_hits"`
						Denies           int     `json:"denies"`
						Gold             int     `json:"gold"`
						Level            int     `json:"level"`
						GoldPerMin       int     `json:"gold_per_min"`
						XpPerMin         int     `json:"xp_per_min"`
						UltimateState    int     `json:"ultimate_state"`
						UltimateCooldown int     `json:"ultimate_cooldown"`
						Item0            int     `json:"item0"`
						Item1            int     `json:"item1"`
						Item2            int     `json:"item2"`
						Item3            int     `json:"item3"`
						Item4            int     `json:"item4"`
						Item5            int     `json:"item5"`
						RespawnTimer     int     `json:"respawn_timer"`
						PositionX        float64 `json:"position_x"`
						PositionY        float64 `json:"position_y"`
						NetWorth         int     `json:"net_worth"`
					} `json:"players"`
					Abilities []struct {
						AbilityID    int `json:"ability_id"`
						AbilityLevel int `json:"ability_level"`
					} `json:"abilities"`
				} `json:"radiant"`
				Dire struct {
					Score         int `json:"score"`
					TowerState    int `json:"tower_state"`
					BarracksState int `json:"barracks_state"`
					Picks         []struct {
						HeroID int `json:"hero_id"`
					} `json:"picks"`
					Bans []struct {
						HeroID int `json:"hero_id"`
					} `json:"bans"`
					Players []struct {
						PlayerSlot       int     `json:"player_slot"`
						AccountID        int     `json:"account_id"`
						HeroID           int     `json:"hero_id"`
						Kills            int     `json:"kills"`
						Death            int     `json:"death"`
						Assists          int     `json:"assists"`
						LastHits         int     `json:"last_hits"`
						Denies           int     `json:"denies"`
						Gold             int     `json:"gold"`
						Level            int     `json:"level"`
						GoldPerMin       int     `json:"gold_per_min"`
						XpPerMin         int     `json:"xp_per_min"`
						UltimateState    int     `json:"ultimate_state"`
						UltimateCooldown int     `json:"ultimate_cooldown"`
						Item0            int     `json:"item0"`
						Item1            int     `json:"item1"`
						Item2            int     `json:"item2"`
						Item3            int     `json:"item3"`
						Item4            int     `json:"item4"`
						Item5            int     `json:"item5"`
						RespawnTimer     int     `json:"respawn_timer"`
						PositionX        float64 `json:"position_x"`
						PositionY        float64 `json:"position_y"`
						NetWorth         int     `json:"net_worth"`
					} `json:"players"`
					Abilities []struct {
						AbilityID    int `json:"ability_id"`
						AbilityLevel int `json:"ability_level"`
					} `json:"abilities"`
				} `json:"dire"`
			} `json:"scoreboard,omitempty"`
			RadiantTeam struct {
				TeamName string `json:"team_name"`
				TeamID   int    `json:"team_id"`
				TeamLogo int64  `json:"team_logo"`
				Complete bool   `json:"complete"`
			} `json:"radiant_team,omitempty"`
			DireTeam struct {
				TeamName string `json:"team_name"`
				TeamID   int    `json:"team_id"`
				TeamLogo int64  `json:"team_logo"`
				Complete bool   `json:"complete"`
			} `json:"dire_team,omitempty"`
		} `json:"games"`
		Status int `json:"status"`
	} `json:"result"`
}

type LeagueListing

type LeagueListing struct {
	Result struct {
		Leagues []struct {
			Name          string `json:"name"`
			Leagueid      int    `json:"leagueid"`
			Description   string `json:"description"`
			TournamentURL string `json:"tournament_url"`
			Itemdef       int    `json:"itemdef"`
		} `json:"leagues"`
	} `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL