groundconfig

package
v0.0.0-...-e449b39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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