blockloader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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