engine

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download added in v0.1.9

func Download(engine Engine, config *config.GudgeonConfig, list *config.GudgeonList) error

Types

type Engine

type Engine interface {
	IsDomainBlocked(consumer *net.IP, domain string) (bool, *config.GudgeonList, string)
	Resolve(domainName string) (string, error)
	Reverse(address string) string
	Handle(address *net.IP, protocol string, dnsWriter dns.ResponseWriter, request *dns.Msg) (*dns.Msg, *resolver.RequestContext, *resolver.ResolutionResult)
	CacheSize() int64
}

func New

func New(conf *config.GudgeonConfig, metrics gmetrics.Metrics) (Engine, error)

Jump to

Keyboard shortcuts

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