Documentation
¶
Index ¶
Constants ¶
View Source
const ( // the constant that means ALLOW after pasring "allow" or "block" ALLOW = uint8(1) // the constant that means BLOCK after pasring "allow" or "block" BLOCK = uint8(0) // the string that represents "allow", all other results are treated as "block" ALLOWSTRING = "allow" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComplexRule ¶ added in v0.3.15
func CreateComplexRule ¶ added in v0.3.15
func CreateComplexRule(rule string) ComplexRule
type Match ¶
type Match uint8
a match can be: allow (don't block, override/bypass block) block (explicit block) none (no reason found to block or allow)
type RuleStore ¶
type RuleStore interface { Init(sessionRoot string, config *config.GudgeonConfig, lists []*config.GudgeonList) Load(list *config.GudgeonList, rule string) Finalize(sessionRoot string, lists []*config.GudgeonList) FindMatch(lists []*config.GudgeonList, domain string) (Match, *config.GudgeonList, string) Close() }
func CreateStore ¶
func CreateStore(storeRoot string, config *config.GudgeonConfig) (RuleStore, []uint64)
stores are created from lists of files inside a configuration
Click to show internal directories.
Click to hide internal directories.