Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct { Name string `db:"name"` Kills int64 `db:"kills"` Points int64 `db:"points"` Playtime int64 `db:"playtime"` // minutes }
func (Map) ConvertPlaytime ¶
type Player ¶
type Player struct { Index int `db:"ix" rfsql:"-"` SteamID SteamID `db:"steamid"` Name string `db:"name"` Kills int64 `db:"kills"` Points int64 `db:"points"` Playtime int64 `db:"playtime"` MeleeKills int64 `db:"melee_kills"` Headshots int64 `db:"headshots"` AwardFriendlyfire int64 `db:"award_friendlyfire"` AwardFincap int64 `db:"award_fincap"` }
Player contains some statistics of each player.
func (Player) ConvertPlaytime ¶
type PlayerResults ¶
type ReadView ¶
type ReadView struct { *Database // contains filtered or unexported fields }
func (*ReadView) Leaderboard ¶
func (rv *ReadView) Leaderboard(search, sort string, count, page int) (PlayerResults, error)
Leaderboard searches the leaderboard for players. The page count is zero-indexed.
func (*ReadView) Statistics ¶
func (rv *ReadView) Statistics() (*Statistics, error)
type Statistics ¶
type Statistics struct { PlayersServed int64 `db:"players_served"` TotalKills int64 `db:"total_kills"` TotalPoints int64 `db:"total_points"` TotalPlaytime int64 `db:"total_playtime"` TotalHeadshots int64 `db:"total_headshots"` }
Statistics contains general statistics.
func (Statistics) ConvertTotalPlaytime ¶
func (s Statistics) ConvertTotalPlaytime() time.Duration
Click to show internal directories.
Click to hide internal directories.