Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Domain string `yaml:"domain"` // Domain name to be blocked. Category string `yaml:"category"` // Category of the reason for blocking (e.g., advertising). Reason string `yaml:"reason"` // Long reason for the domain being blocked. }
Block represents a single blocked domain with its category and reason for being blocked.
type BlockList ¶
type BlockList []Block
BlockList is a slice of Block, representing a list of blocked domains and their details.
func New ¶
New initializes a BlockList from a list of URLs pointing to blocklists. It downloads and parses the blocklists concurrently for efficiency.
Click to show internal directories.
Click to hide internal directories.