Documentation ¶
Overview ¶
Package tlhist is an API client for @p1nkl0bst3r's https://api.p1nkl0bst3r.xyz/tlhist/ TETRA LEAGUE history API.
Index ¶
Constants ¶
View Source
const Endpoint = "https://api.p1nkl0bst3r.xyz/tlhist/"
View Source
const NumFields = 10
View Source
const TimeLayout = "2006-01-02 15:04:05.999999999"
Variables ¶
View Source
var ErrInvalidUID = errors.New("tlhist: invalid uid")
View Source
var ErrNotFound = errors.New("tlhist: not found")
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
type Record ¶
type Record struct { UserID string `json:"user_id"` GamesPlayed int `json:"gamesplayed"` GamesWon int `json:"gameswon"` Rating float64 `json:"rating"` Glicko float64 `json:"glicko"` Rank string `json:"rank"` APM float64 `json:"apm"` PPS float64 `json:"pps"` VS float64 `json:"vs"` CreatedAt time.Time `json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.