Documentation
¶
Index ¶
- type GroundConfig
- func (config *GroundConfig) MakeHighScoreFileFullpath() string
- func (config *GroundConfig) MakeLogDir() string
- func (config *GroundConfig) MakeOutfileFullpath() string
- func (config *GroundConfig) MakePIDFileFullpath() string
- func (config *GroundConfig) MakeTowerConfig(portIndex int, displayName string, towerFilename string, turnPerSec float64) *towerconfig.TowerConfig
- func (config *GroundConfig) MakeTowerDataFileFullpath() string
- func (config *GroundConfig) MakeTowerExeFullpath() string
- func (config *GroundConfig) StringForm() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroundConfig ¶
type GroundConfig struct { LogLevel g2log.LL_Type `default:"7" argname:""` SplitLogLevel g2log.LL_Type `default:"0" argname:""` BaseLogDir string `default:"/tmp/" argname:""` DataFolder string `default:"./serverdata" argname:""` ExeFolder string `default:"./" argname:""` ClientDataFolder string `default:"./clientdata" argname:""` GroundHost string `default:"localhost" argname:""` GroundAdminWebPort int `default:"14001" argname:""` GroundRPCPort int `default:"14002" argname:""` GroundServiceWebPort int `default:"14003" argname:""` // TowerServicePortBase + towernum TowerServicePortBase int `default:"14100" argname:""` // TowerAdminWebPortBase + towernum TowerAdminWebPortBase int `default:"14200" argname:""` WebAdminID string `default:"root" argname:""` WebAdminPass string `default:"password" argname:"" prettystring:"hidevalue"` AdminAuthKey string `default:"6e9456cf-ab29-99b2-f223-1459e00cfcd5" argname:"" prettystring:"hidevalue"` TowerDataFile string `default:"towerdata.json" argname:""` HighScoreFile string `default:"highscore.json" argname:""` TowerBin string `default:"towerserver" argname:""` TowerAdminHostBase string `default:"http://localhost" argname:""` TowerServiceHostBase string `default:"http://localhost" argname:""` }
func (*GroundConfig) MakeHighScoreFileFullpath ¶
func (config *GroundConfig) MakeHighScoreFileFullpath() string
func (*GroundConfig) MakeLogDir ¶
func (config *GroundConfig) MakeLogDir() string
func (*GroundConfig) MakeOutfileFullpath ¶
func (config *GroundConfig) MakeOutfileFullpath() string
func (*GroundConfig) MakePIDFileFullpath ¶
func (config *GroundConfig) MakePIDFileFullpath() string
func (*GroundConfig) MakeTowerConfig ¶
func (config *GroundConfig) MakeTowerConfig( portIndex int, displayName string, towerFilename string, turnPerSec float64, ) *towerconfig.TowerConfig
func (*GroundConfig) MakeTowerDataFileFullpath ¶
func (config *GroundConfig) MakeTowerDataFileFullpath() string
func (*GroundConfig) MakeTowerExeFullpath ¶
func (config *GroundConfig) MakeTowerExeFullpath() string
func (*GroundConfig) StringForm ¶
func (config *GroundConfig) StringForm() string
Click to show internal directories.
Click to hide internal directories.