configManager

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 3 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 {
	Server struct {
		Host string
		Port uint16
	}
	Download struct {
		Directory      string
		ConcurrentJobs int8
	}
	App struct {
		Tempdir string
	}
	Dev struct {
		PlaywrightDebug bool
		ServerLogging   bool
	}
	Version string
}

func NewConfig

func NewConfig() *Config

Creates a new config.

This function DOES NOT save it to file. To save it, call cfg.Save()

func (*Config) Load added in v0.3.0

func (cfg *Config) Load() error

Loads the config from file

This function DOES NOT save it to file. To save it, call cfg.Save()

func (*Config) Save

func (cfg *Config) Save() error

Saves the config to file

Jump to

Keyboard shortcuts

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