models

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	MainHand BuildItem `json:"main_hand"`
	OffHand  BuildItem `json:"off_hand"`
	Head     BuildItem `json:"head"`
	Body     BuildItem `json:"body"`
	Shoe     BuildItem `json:"shoe"`
	Cape     BuildItem `json:"cape"`
}

type BuildItem

type BuildItem struct {
	Item string `json:"type"`
	Name string `json:"en_name"`
}

type BuildStat

type BuildStat struct {
	Build            Build    `json:"build"`
	Usages           int      `json:"usages"`
	AverageItemPower float64  `json:"average_item_power"`
	KillFame         int      `json:"kill_fame"`
	DeathFame        int      `json:"death_fame"`
	Kills            int      `json:"kills"`
	Deaths           int      `json:"deaths"`
	Assists          int      `json:"assists"`
	FameRatio        *float64 `json:"fame_ratio"`
	Kdr              *float64 `json:"kdr"`
}

type Event

type Event struct {
	Time             int    `json:"time"`
	Id               int    `json:"id"`
	Killer           Killer `json:"killer"`
	Victim           Player `json:"victim"`
	TotalKillFame    int    `json:"total_kill_fame"`
	ParticipantCount int    `json:"participant_count"`
	PartySize        int    `json:"party_size"`
	Tags             Tags   `json:"tags"`
}

type EventsResponse

type EventsResponse struct {
	Events     []Event `json:"events"`
	TotalCount int     `json:"total_count"`
	Skip       int     `json:"skip"`
	Take       int     `json:"take"`
}

type Item

type Item struct {
	Id      string `json:"id"`
	Item    string `json:"type"`
	Tier    int    `json:"tier"`
	Enchant int    `json:"enchant"`
	Quality int    `json:"quality"`
	Name    string `json:"en_name"`
}

type ItemMetadata

type ItemMetadata struct {
	LocalizedNames struct {
		ENUS string `json:"EN-US"`
		DEDE string `json:"DE-DE"`
		FRFR string `json:"FR-FR"`
		RURU string `json:"RU-RU"`
		PLPL string `json:"PL-PL"`
		ESES string `json:"ES-ES"`
		PTBR string `json:"PT-BR"`
		ZHCN string `json:"ZH-CN"`
		KOKR string `json:"KO-KR"`
	} `json:"LocalizedNames"`
	UniqueName string `json:"UniqueName"`
}

type Killer

type Killer struct {
	Player
	IsPrimary   bool `json:"is_primary"`
	KillFame    int  `json:"kill_fame"`
	DamageDone  int  `json:"damage_done"`
	HealingDone int  `json:"healing_done"`
}

type Loadout

type Loadout struct {
	MainHand Item `json:"main_hand"`
	OffHand  Item `json:"off_hand"`
	Head     Item `json:"head"`
	Body     Item `json:"body"`
	Shoe     Item `json:"shoe"`
	Bag      Item `json:"bag"`
	Cape     Item `json:"cape"`
	Mount    Item `json:"mount"`
	Food     Item `json:"food"`
	Potion   Item `json:"potion"`
}

func (*Loadout) ReconstructIds

func (l *Loadout) ReconstructIds()

type Player

type Player struct {
	Name         string         `json:"name"`
	ItemPower    int            `json:"item_power"`
	GuildName    string         `json:"guild_name"`
	AllianceName string         `json:"alliance_name"`
	Loadout      Loadout        `json:"loadout"`
	Vod          string         `json:"vod"`
	DbVod        sql.NullString `json:"-"`
}

type PlayerBuildStats

type PlayerBuildStats struct {
	PlayerName string      `json:"player_name"`
	Builds     []BuildStat `json:"builds"`
}

type PlayerWeaponStats

type PlayerWeaponStats struct {
	PlayerName string       `json:"player_name"`
	Weapons    []WeaponStat `json:"weapons"`
}

type Tags

type Tags struct {
	Is1v1  bool `json:"is_1v1"`
	Is2v2  bool `json:"is_2v2"`
	Is5v5  bool `json:"is_5v5"`
	IsZvZ  bool `json:"is_zvz"`
	Fair   bool `json:"fair"`
	Unfair bool `json:"unfair"`
}

type WeaponStat

type WeaponStat struct {
	Weapon           string   `json:"weapon"`
	WeaponName       string   `json:"weapon_name"`
	Usages           int      `json:"usages"`
	AverageItemPower float64  `json:"average_item_power"`
	KillFame         int      `json:"kill_fame"`
	DeathFame        int      `json:"death_fame"`
	Kills            int      `json:"kills"`
	Deaths           int      `json:"deaths"`
	Assists          int      `json:"assists"`
	FameRatio        *float64 `json:"fame_ratio"`
	Kdr              *float64 `json:"kdr"`
}

Jump to

Keyboard shortcuts

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