added cache for meta-stats
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user