config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Config *domain.Config
	// contains filtered or unexported fields
}

func New

func New(configDirOrPath string) (*AppConfig, error)

func (*AppConfig) ApplyLogConfig

func (c *AppConfig) ApplyLogConfig()

ApplyLogConfig applies the log level and log file configuration

func (*AppConfig) GetDataDir

func (c *AppConfig) GetDataDir() string

GetDataDir returns the data directory path

func (*AppConfig) GetDatabasePath

func (c *AppConfig) GetDatabasePath() string

GetDatabasePath returns the path to the database file

func (*AppConfig) GetEncryptionKey

func (c *AppConfig) GetEncryptionKey() []byte

GetEncryptionKey derives a 32-byte encryption key from the session secret

func (*AppConfig) SetDataDir

func (c *AppConfig) SetDataDir(dir string)

SetDataDir sets the data directory (used by CLI flags)

Jump to

Keyboard shortcuts

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