rules

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainKeyword

type DomainKeyword struct {
	// contains filtered or unexported fields
}

func NewDomainKeyword

func NewDomainKeyword(keyword string, adapter string) *DomainKeyword

func (*DomainKeyword) Adapter

func (dk *DomainKeyword) Adapter() string

func (*DomainKeyword) IsMatch

func (dk *DomainKeyword) IsMatch(addr *C.Addr) bool

func (*DomainKeyword) RuleType

func (dk *DomainKeyword) RuleType() C.RuleType

type DomainSuffix

type DomainSuffix struct {
	// contains filtered or unexported fields
}

func NewDomainSuffix

func NewDomainSuffix(suffix string, adapter string) *DomainSuffix

func (*DomainSuffix) Adapter

func (ds *DomainSuffix) Adapter() string

func (*DomainSuffix) IsMatch

func (ds *DomainSuffix) IsMatch(addr *C.Addr) bool

func (*DomainSuffix) RuleType

func (ds *DomainSuffix) RuleType() C.RuleType

type Final

type Final struct {
	// contains filtered or unexported fields
}

func NewFinal

func NewFinal(adapter string) *Final

func (*Final) Adapter

func (f *Final) Adapter() string

func (*Final) IsMatch

func (f *Final) IsMatch(addr *C.Addr) bool

func (*Final) RuleType

func (f *Final) RuleType() C.RuleType

type GEOIP

type GEOIP struct {
	// contains filtered or unexported fields
}

func NewGEOIP

func NewGEOIP(country string, adapter string) *GEOIP

func (*GEOIP) Adapter

func (g *GEOIP) Adapter() string

func (*GEOIP) IsMatch

func (g *GEOIP) IsMatch(addr *C.Addr) bool

func (*GEOIP) RuleType

func (g *GEOIP) RuleType() C.RuleType

type IPCIDR

type IPCIDR struct {
	// contains filtered or unexported fields
}

func NewIPCIDR

func NewIPCIDR(s string, adapter string) *IPCIDR

func (*IPCIDR) Adapter

func (g *IPCIDR) Adapter() string

func (*IPCIDR) IsMatch

func (i *IPCIDR) IsMatch(addr *C.Addr) bool

func (*IPCIDR) RuleType

func (i *IPCIDR) RuleType() C.RuleType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL