package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Nov 27, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Blacklist is a custom type that allows for direct access to providers
ReadConfig reads and parses the TOML config file
type BlacklistProvider struct {
Name string `toml:"name"`
Website string `toml:"website"`
Lookup string `toml:"lookup"`
DomainLists []ListInfo `toml:"domain_lists"`
IPLists []ListInfo `toml:"ip_lists"`
}
BlacklistProvider represents a single blacklist provider
type ListInfo struct {
Name string `toml:"name"`
URL string `toml:"url"`
Type string `toml:"type"`
}
ListInfo represents information about a specific blacklist
Source Files
¶
Click to show internal directories.
Click to hide internal directories.