Documentation
¶
Overview ¶
Package blockloader reads all filter list files from a directory and aggregates them into a unified slice of listparser.Rule objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDirectory ¶
func LoadDirectory(dir string, logger listparser.Logger) ([]listparser.Rule, error)
LoadDirectory loads supported filter list files from dir and aggregates them.
The dir parameter must point at a single directory and is scanned non-recursively. The logger parameter may be nil and receives warnings for unreadable files or skipped parse issues. LoadDirectory returns the combined rule slice for all supported files, or an error when the directory itself cannot be read. Callers typically use it during startup and hot reloads before compiling the resulting rules into DFAs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.