config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFileExists

func ConfigFileExists() bool

func EnsureDirectories

func EnsureDirectories() error

func GetCachePath

func GetCachePath() string

func GetConfigDir

func GetConfigDir() string

func GetConfigPath

func GetConfigPath() string

func GetDatabasePath

func GetDatabasePath() string

func GetLogPath

func GetLogPath() string

func GetServerCachePath

func GetServerCachePath() string

func SearchConfigFile

func SearchConfigFile() (string, error)

Types

type AppConfig

type AppConfig struct {
	DefaultPort string `yaml:"default_port"`
}

type Config

type Config struct {
	App      AppConfig      `yaml:"app"`
	Database DatabaseConfig `yaml:"database"`
	Paths    PathsConfig    `yaml:"-"`
}

func Load

func Load() (*Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	Path             string `yaml:"path"`
	MigrationsDir    string `yaml:"migrations_dir"`
	ConnectionString string `yaml:"-"`
}

type PathsConfig

type PathsConfig struct {
	ConfigFile string `yaml:"-"`
	LogFile    string `yaml:"-"`
}

Jump to

Keyboard shortcuts

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