Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLogWriter ¶ added in v1.1.0
DefaultLogWriter returns the base log writer for the provided version.
func GetDefaultConfigDir ¶ added in v0.3.0
func GetDefaultConfigDir() string
GetDefaultConfigDir returns the OS-specific config directory
func InitDefaultLogger ¶ added in v1.1.0
func InitDefaultLogger(version string)
InitDefaultLogger configures zerolog with the default writer for this version. This is used by CLI entry points before a configuration file is loaded.
func WriteDefaultConfig ¶ added in v0.3.0
Types ¶
type AppConfig ¶
func (*AppConfig) ApplyLogConfig ¶
func (c *AppConfig) ApplyLogConfig()
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.