config

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigVersion          int      `json:"config_version"`
	Server                 string   `json:"server"`
	Debug                  bool     `json:"debug"`
	DebugPort              int      `json:"debug_port"`
	Restart                bool     `json:"restart"`
	Memory                 int      `json:"memory"`
	EnableTrafficMonitor   bool     `json:"enable_traffic_monitor"`
	TrafficRedirectPort    int      `json:"traffic_redirect_port"`
	AutoUpdate             bool     `json:"auto_update"`
	APIPort                int      `json:"api_port"`
	PluginPort             int      `json:"plugin_api_port"`
	Plugins                []string `json:"plugins"`
	JarArgs                []string `json:"jar_args"`
	WebConsoleDisabledCmds []string `json:"webconsole_disabled_cmds"`
}
var ConfigContent Config

func LoadConfig

func LoadConfig() Config

type PluginConfig

type PluginConfig struct {
	Key     string `yaml:"key"`
	Enabled bool   `yaml:"enabled"`
}

func GetPluginConfig

func GetPluginConfig() PluginConfig

Jump to

Keyboard shortcuts

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