Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigDir ¶ added in v0.3.0
func GetDefaultConfigDir() string
GetDefaultConfigDir returns the OS-specific config directory
func WriteDefaultConfig ¶ added in v0.3.0
Types ¶
type AppConfig ¶
func (*AppConfig) ApplyLogConfig ¶
func (c *AppConfig) ApplyLogConfig()
ApplyLogConfig applies the log level and log file configuration
func (*AppConfig) GetDatabasePath ¶
GetDatabasePath returns the path to the database file
func (*AppConfig) GetEncryptionKey ¶
GetEncryptionKey derives a 32-byte encryption key from the session secret
func (*AppConfig) RegisterReloadListener ¶ added in v1.0.0
RegisterReloadListener registers a callback that's invoked when the configuration file is reloaded.
func (*AppConfig) SetDataDir ¶
SetDataDir sets the data directory (used by CLI flags)
Click to show internal directories.
Click to hide internal directories.