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 Entry ¶
func ParseEntry ¶
func (Entry) Match ¶ added in v1.0.4
func (e Entry) Match(r MatchRequest) bool
type MatchRequest ¶ added in v1.0.4
type Matcher ¶ added in v1.0.4
type Matcher interface {
Match(MatchRequest) bool
}
Click to show internal directories.
Click to hide internal directories.