Documentation
¶
Overview ¶
Package config provides configuration logic and constants for the application.
Index ¶
Constants ¶
View Source
const ( // ProductName is the human-readable name of the application. ProductName = "typomat" // AppCommandName is the command-line name of the application. AppName = "typomat" )
Variables ¶
View Source
var ( // ErrInit indicates a failure to initialize the app configuration. ErrInit = errors.New("failed to initialize configuration directory") // ErrCleanup indicates a failure to clean up old files. ErrCleanup = errors.New("failed to clean configuration directory") )
Functions ¶
func Init ¶
func Init() error
Init initializes the configuration by setting up necessary directories and configuring the logger.
func PurgeCache ¶
func PurgeCache() error
PurgeCache deletes all cached data stored in the database directory.
func RemoveOldFiles ¶
func RemoveOldFiles() error
RemoveOldFiles removes files in the application directory that are older than a week.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.