config

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG = false // set to true for debug mode

)

Functions

func EditConfigField

func EditConfigField(field, value string) error

Types

type Config

type Config struct {
	RetroPath     string        `json:"retro_path"`     // path to retro
	PathYTDL      string        `json:"path_ytldpl"`    // path to yt-dlp
	PathFFmpeg    string        `json:"path_ffmpeg"`    // path to ffmpeg
	PathFFprobe   string        `json:"path_ffprobe"`   // path to ffprobe
	SearchTimeout time.Duration `json:"search_timeout"` // search timeout
	Theme         string        `json:"theme"`          // UI theme
	DBPath        string        `json:"db_path"`        // path to the database
	DiscordRPC    bool          `json:"discord_rpc"`    // Discord Rich Presence
	LogFile       string        `json:"log_file"`       // path to the log file
	ServerPort    string        `json:"server_port"`    // port to run the server on
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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