Documentation
¶
Index ¶
- func ConfigFileExists() bool
- func EnsureDirectories() error
- func GetCachePath() string
- func GetConfigDir() string
- func GetConfigPath() string
- func GetDatabasePath() string
- func GetLogPath() string
- func GetServerCachePath() string
- func SearchConfigFile() (string, error)
- type AppConfig
- type Config
- type DatabaseConfig
- type PathsConfig
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 ¶
Types ¶
type Config ¶
type Config struct {
App AppConfig `yaml:"app"`
Database DatabaseConfig `yaml:"database"`
Paths PathsConfig `yaml:"-"`
}
type DatabaseConfig ¶
type PathsConfig ¶
Click to show internal directories.
Click to hide internal directories.