config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 7 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 {
	SteamCMDPath string `json:"steamCMDPath"`
}

type ConfigController

type ConfigController struct {
	Config *Config
	// contains filtered or unexported fields
}

ConfigController struct handles the configuration and storing it, the config contains everything from app preferences to servers

func NewConfigController

func NewConfigController() *ConfigController

NewConfigController creates a new ConfigController application struct

func (*ConfigController) GetConfig

func (c *ConfigController) GetConfig() bool

func (*ConfigController) SaveConfig

func (c *ConfigController) SaveConfig() bool

func (*ConfigController) Startup

func (c *ConfigController) Startup(ctx context.Context)

Startup handles the initial loading of the config

Jump to

Keyboard shortcuts

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