Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActionDirect = Action(iota) ActionProxy ActionBlock ActionHijack )
View Source
const ( ProtocolAll = Protocol(iota) ProtocolTCP ProtocolUDP )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
DefaultAction Action
Entries []Entry
Cache *lru.ARCCache
ResolveIPAddr func(string) (*net.IPAddr, error)
GeoIPReader *geoip2.Reader
}
func LoadFromFile ¶
type MatchRequest ¶
type Matcher ¶
type Matcher interface {
Match(MatchRequest) bool
}
Click to show internal directories.
Click to hide internal directories.