Documentation
¶
Overview ¶
Package preloader handles loading precompiled data like newsgroup descriptions
Index ¶
- func LoadNewsgroupDescriptions(ctx context.Context, db *database.Database, filePath string) error
- func LoadNewsgroupsFromActive(ctx context.Context, db *database.Database, filePath string) error
- func LoadNewsgroupsFromDescriptions(ctx context.Context, db *database.Database, filePath string, ...) error
- func LoadNewsgroupsFromFiles(ctx context.Context, db *database.Database, activeFile, descFile string, ...) error
- func RepairNewsgroupWatermarks(ctx context.Context, db *database.Database) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadNewsgroupDescriptions ¶
LoadNewsgroupDescriptions loads newsgroup descriptions from a file (backward compatibility) File format: <groupname>\t<description>
func LoadNewsgroupsFromActive ¶
LoadNewsgroupsFromActive loads newsgroups from an NNTP active file File format: <groupname> <highwater> <lowwater> <status>
func LoadNewsgroupsFromDescriptions ¶
func LoadNewsgroupsFromDescriptions(ctx context.Context, db *database.Database, filePath string, createMissing bool) error
LoadNewsgroupsFromDescriptions loads newsgroups from a descriptions file and creates them if they don't exist File format: <groupname>\t<description>
func LoadNewsgroupsFromFiles ¶
func LoadNewsgroupsFromFiles(ctx context.Context, db *database.Database, activeFile, descFile string, createFromDesc bool) error
LoadNewsgroupsFromFiles loads newsgroups from standard NNTP files activeFile: path to active file (groupname highwater lowwater status) descFile: path to descriptions file (groupname\tdescription) - optional, can be empty createFromDesc: whether to create missing newsgroups from description file
Types ¶
This section is empty.