Documentation ¶
Index ¶
- Constants
- func FileToLines(path string) ([]string, error)
- func LinesFromReader(r io.Reader) ([]string, error)
- func LoadCacheByLocal(path string, filter *bloom.BloomFilter) error
- func LoadCacheByRemote(uri string, filter *bloom.BloomFilter) error
- func LoadRuleByLocal(path string, filter *bloom.BloomFilter, strictMode bool) error
- func LoadRuleByRemote(uri string, filter *bloom.BloomFilter) error
- func UrlToLines(url string) ([]string, error)
- type Adblock
- type Configs
Constants ¶
View Source
const ( MINUTE = 60 HOUR = 60 * MINUTE DAY = 24 * HOUR /* * respType: using by switch logic */ NO_ANS = 1 SOA = 2 HINFO = 3 ZERO = 4 NX = 5 REFUSED = 6 )
Variables ¶
This section is empty.
Functions ¶
func FileToLines ¶ added in v0.0.5
func LoadCacheByLocal ¶ added in v0.0.3
func LoadCacheByRemote ¶ added in v0.0.3
func LoadRuleByLocal ¶ added in v0.0.3
func LoadRuleByRemote ¶ added in v0.0.3
func UrlToLines ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.