config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfgFile string, conf *Config)

Types

type Config

type Config struct {
	Web struct {
		Port      int    `mapstructure:"port"`
		Password  string `mapstructure:"password"`
		Tls       bool   `mapstructure:"tls"`
		CertPath  string `mapstructure:"cert_path"`
		KeyPath   string `mapstructure:"key_path"`
		PublicUrl string `mapstructure:"public_url"`
	}
	Rcon struct {
		Address        string `mapstructure:"address"`
		Password       string `mapstructure:"password"`
		Timeout        int    `mapstructure:"timeout"`
		SyncInterval   int    `mapstructure:"sync_interval"`
		BackupInterval int    `mapstructure:"backup_interval"`
	} `mapstructure:"rcon"`
	Save struct {
		Path         string `mapstructure:"path"`
		DecodePath   string `mapstructure:"decode_path"`
		SyncInterval int    `mapstructure:"sync_interval"`
	} `mapstructure:"save"`
	Manage struct {
		KickNonWhitelist bool `mapstructure:"kick_non_whitelist"`
	}
}

Jump to

Keyboard shortcuts

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