config

package
v0.0.0-...-cb097dc Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Defaults = map[string]interface{}{
	"DPort":                        "9001",
	"DDoTimeLogging":               true,
	"DLogUnknownRequests":          true,
	"DLogAllRequests":              false,
	"DLogAllResponses":             false,
	"DDebug":                       false,
	"DDebugPrints":                 false,
	"DEnableRPC":                   false,
	"DRPCPort":                     "23432",
	"DEnablePublicStats":           false,
	"DEndpointPrefix":              "",
	"DEnableAnalytics":             false,
	"DPrintPlayerNames":            false,
	"DEventConfigFilename":         "event_config.json",
	"DSilenceEventConfigErrors":    false,
	"DInfoConfigFilename":          "info_config.json",
	"DSilenceInfoConfigErrors":     false,
	"DGameConfigFilename":          "game_config.json",
	"DSilenceGameConfigErrors":     false,
	"DCampaignConfigFilename":      "campaign_config.json",
	"DSilenceCampaignConfigErrors": false,
}

defaults default variable names MUST be "D" + (nameOfVariable)

Functions

func Parse

func Parse(filename string) error

Types

type ConfigFile

type ConfigFile struct {
	Port                        string `json:"port,omitempty"`
	DoTimeLogging               bool   `json:"doTimeLogging,omitempty"`
	LogUnknownRequests          bool   `json:"logUnknownRequests,omitempty"`
	LogAllRequests              bool   `json:"logAllRequests,omitempty"`
	LogAllResponses             bool   `json:"logAllResponses,omitempty"`
	Debug                       bool   `json:"debug,omitempty"`
	DebugPrints                 bool   `json:"debugPrints,omitempty"`
	EnableRPC                   bool   `json:"enableRPC,omitempty"`
	RPCPort                     string `json:"rpcPort,omitempty"`
	EnablePublicStats           bool   `json:"enablePublicStats,omitempty"`
	EndpointPrefix              string `json:"endpointPrefix,omitempty"`
	EnableAnalytics             bool   `json:"enableAnalytics,omitempty"`
	PrintPlayerNames            bool   `json:"printPlayerNames,omitempty"`
	EventConfigFilename         string `json:"eventConfigFilename,omitempty"`
	SilenceEventConfigErrors    bool   `json:"silenceEventConfigErrors,omitempty"`
	InfoConfigFilename          string `json:"infoConfigFilename,omitempty"`
	SilenceInfoConfigErrors     bool   `json:"silenceInfoConfigErrors,omitempty"`
	GameConfigFilename          string `json:"gameConfigFilename,omitempty"`
	SilenceGameConfigErrors     bool   `json:"silenceGameConfigErrors,omitempty"`
	CampaignConfigFilename      string `json:"campaignConfigFilename,omitempty"`
	SilenceCampaignConfigErrors bool   `json:"silenceCampaignConfigErrors,omitempty"`
}
var CFile ConfigFile

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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