rules

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain added in v0.7.0

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

func NewDomain added in v0.7.0

func NewDomain(domain string, adapter string) *Domain

func (*Domain) Adapter added in v0.7.0

func (d *Domain) Adapter() string

func (*Domain) IsMatch added in v0.7.0

func (d *Domain) IsMatch(addr *C.Addr) bool

func (*Domain) Payload added in v0.7.0

func (d *Domain) Payload() string

func (*Domain) RuleType added in v0.7.0

func (d *Domain) RuleType() C.RuleType

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) Payload added in v0.5.0

func (dk *DomainKeyword) Payload() string

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) Payload added in v0.5.0

func (ds *DomainSuffix) Payload() string

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) Payload added in v0.5.0

func (f *Final) Payload() string

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) Payload added in v0.5.0

func (g *GEOIP) Payload() string

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 (i *IPCIDR) Adapter() string

func (*IPCIDR) IsMatch

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

func (*IPCIDR) Payload added in v0.5.0

func (i *IPCIDR) Payload() string

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