added cache for meta-stats

This commit is contained in:
2021-10-08 18:29:15 +02:00
parent 1816c5a2b5
commit cc48365eea
5 changed files with 320 additions and 35 deletions

View File

@@ -44,6 +44,10 @@ type Conf struct {
LoginKey string `yaml:"login_key"`
ServerList string `yaml:"server_list"`
}
Redis struct {
Address string
Password string
}
Httpd struct {
CORSAllowDomains string `yaml:"cors_allow_domains"`
Listen []struct {
@@ -74,6 +78,12 @@ type shareCodeResponse struct {
} `json:"result"`
}
type MatchStats struct {
Win int `json:"win,omitempty"`
Tie int `json:"tie,omitempty"`
Loss int `json:"loss,omitempty"`
}
const (
steamID64Entry = "https://steamcommunity.com/profiles/%d?xml=1"
steamVanityURLEntry = "https://steamcommunity.com/id/%s?xml=1"