structures

package
v0.0.0-...-f537024 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DotaGame

type DotaGame struct {
	ID        primitive.ObjectID `bson:"_id"`
	GameID    string             `bson:"game_id"`
	Win       bool               `bson:"win"`
	CreatedAt time.Time          `bson:"created_at"`
	FetchedOn time.Time          `bson:"fetched_on"`
}

type DotaGamePlayer

type DotaGamePlayer struct {
	ID         primitive.ObjectID  `bson:"_id"`
	GameID     primitive.ObjectID  `bson:"game_id"`
	DotaGameID string              `bson:"dota_game_id"`
	SteamID    string              `bson:"steam_id"`
	UserID     primitive.ObjectID  `bson:"user_id"`
	Stats      DotaGamePlayerStats `bson:"stats"`
	CreatedAt  time.Time           `bson:"created_at"`
	FetchedOn  time.Time           `bson:"fetched_on"`
}

type DotaGamePlayerStats

type DotaGamePlayerStats struct {
	Wins          int64 `bson:"wins"`
	Losses        int64 `bson:"losses"`
	Kills         int64 `bson:"kills"`
	Assists       int64 `bson:"assists"`
	Deaths        int64 `bson:"deaths"`
	GPM           int64 `bson:"gpm"`
	XPM           int64 `bson:"xpm"`
	LastHits      int64 `bson:"last_hits"`
	Denies        int64 `bson:"denies"`
	Networth      int64 `bson:"networth"`
	Healing       int64 `bson:"healing"`
	Damage        int64 `bson:"damage"`
	DamageTaken   int64 `bson:"damage_taken"`
	DamageReduced int64 `bson:"damage_reduced"`
	Levels        int64 `bson:"levels"`
	BountyRunes   int64 `bson:"bounty_runes"`
	BKBs          int64 `bson:"bkbs"`
	TowerDamage   int64 `bson:"tower_damage"`
}

type User

type User struct {
	ID primitive.ObjectID `bson:"_id,omitempty"`

	Discord UserDiscord `bson:"discord,omitempty"`
	Steam   UserSteam   `bson:"steam,omitempty"`
	Twitch  UserTwitch  `bson:"twitch,omitempty"`

	Modules UserModules `bson:"modules"`
}

type UserDiscord

type UserDiscord struct {
	ID            string `bson:"id,omitempty"`
	Name          string `bson:"name,omitempty"`
	Discriminator string `bson:"discriminator,omitempty"`
}

type UserModules

type UserModules struct {
	Points UserModulesPoints `bson:"points"`
}

type UserModulesPoints

type UserModulesPoints struct {
	Points int32 `bson:"points"`
}

type UserSteam

type UserSteam struct {
	ID   string `bson:"id,omitempty"`
	Name string `bson:"name,omitempty"`
}

type UserTwitch

type UserTwitch struct {
	ID   string `bson:"id,omitempty"`
	Name string `bson:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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