preloader

package
v0.4.7-0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package preloader handles loading precompiled data like newsgroup descriptions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadNewsgroupDescriptions

func LoadNewsgroupDescriptions(ctx context.Context, db *database.Database, filePath string) error

LoadNewsgroupDescriptions loads newsgroup descriptions from a file (backward compatibility) File format: <groupname>\t<description>

func LoadNewsgroupsFromActive

func LoadNewsgroupsFromActive(ctx context.Context, db *database.Database, filePath string) error

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

func RepairNewsgroupWatermarks

func RepairNewsgroupWatermarks(ctx context.Context, db *database.Database) error

RepairNewsgroupWatermarks repairs newsgroup watermarks corrupted by previous preloader runs This function recalculates correct watermarks from actual articles in group databases

Types

This section is empty.

Jump to

Keyboard shortcuts

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