Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "metadata.json"
View Source
const DefaultDeletionsRetentionDays = 3
DefaultDeletionsRetentionDays is the default retention period for deletion records.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
Types ¶
type Config ¶
type Config struct {
Database string `json:"database"`
JSONLExport string `json:"jsonl_export,omitempty"`
// Deletions configuration
DeletionsRetentionDays int `json:"deletions_retention_days,omitempty"` // 0 means use default (3 days)
// Deprecated: LastBdVersion is no longer used for version tracking.
// Version is now stored in .local_version (gitignored) to prevent
// upgrade notifications firing after git operations reset metadata.json.
// bd-tok: This field is kept for backwards compatibility when reading old configs.
LastBdVersion string `json:"last_bd_version,omitempty"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) DatabasePath ¶
func (*Config) GetDeletionsRetentionDays ¶
GetDeletionsRetentionDays returns the configured retention days, or the default if not set.
Click to show internal directories.
Click to hide internal directories.