settings

package
v0.0.0-...-4f99989 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArrayConfoglConfigsMmrs []int
View Source
var AuthPerHour int
View Source
var AvailGameSrvsMaxTries int
View Source
var BackendDomain string
View Source
var BanHistoryForgetIn int64
View Source
var BanListPagination int
View Source
var BanRQFirst int64
View Source
var BanRQReason string
View Source
var BanRQSecond int64
View Source
var BanRQThird int64
View Source
var BrokenMode bool
View Source
var ChatMaxChars int
View Source
var ChatMsgDelay int64
View Source
var ChatStoreMaxMsgs int
View Source
var DatabaseHost string
View Source
var DatabaseName string
View Source
var DatabasePassword string
View Source
var DatabasePort string
View Source
var DatabaseUsername string
View Source
var DefaultMaxMmr int
View Source
var DefaultMmrUncertainty float32
View Source
var ExternalAPICooldown int64
View Source
var FilePath string
View Source
var FirstReadyUpExpire int64
View Source
var GameServers []GameServer
View Source
var HomeDomain string
View Source
var IncreaseMmrUncertainty float32
View Source
var ListenPort string
View Source
var LogPath string
View Source
var MapBackendAuthKeys map[string]bool
View Source
var MapConfoglConfigs map[int]ConfoglConfig = make(map[int]ConfoglConfig)
View Source
var MapPool []Campaign
View Source
var MapProxies = make(map[string]string)
View Source
var MaxAbsentSeconds int64
View Source
var MaxPingWait int
View Source
var MaxSingleAbsentSeconds int64
View Source
var MinPlayersCount int
View Source
var MinVersusGamesPlayed int
View Source
var MmrAbsoluteWin float32
View Source
var MmrDiffGuaranteedWin float32
View Source
var MmrGrades int
View Source
var MmrMinimumWin float32
View Source
var MmrStable float32
View Source
var NewestCustomMap int64
View Source
var OnlineTimeout int64
View Source
var PlayerAuthExpire int64
View Source
var ReadyUpTimeout int64
View Source
var SmurfAuthKey string
View Source
var SmurfHost string
View Source
var SteamApiKey string
View Source
var TwitchClientID string
View Source
var TwitchSecret string

Functions

func CommandLine

func CommandLine()

func ConfigFile

func ConfigFile() bool

func Parse

func Parse() bool

func RefreshAuthKeys

func RefreshAuthKeys()

func RefreshMaps

func RefreshMaps()

func RefreshServers

func RefreshServers()

func UpdateAuthKeysFromJSON

func UpdateAuthKeysFromJSON(byData []byte) bool

func UpdateMapsFromJSON

func UpdateMapsFromJSON(byData []byte) bool

func UpdateServersFromJSON

func UpdateServersFromJSON(byData []byte) bool

Types

type Campaign

type Campaign struct {
	Name         string   `json:"name"`
	Maps         []string `json:"maps"`
	DownloadLink string   `json:"download"`
	LastUpdated  int64    `json:"last_updated"`
}

type ConfoglConfig

type ConfoglConfig struct {
	CodeName string
	Name     string
	MmrMax   int
}

type GameServer

type GameServer struct {
	IP            string   `json:"ip"`
	Domain        string   `json:"domain"`
	Ports         []string `json:"ports"`
	LowerPriority []int    `json:"lower_priority"`
	Admin         string   `json:"admin"`
}

Jump to

Keyboard shortcuts

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