iplist

package
v0.0.0-...-39d52a8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EDNS0SIZE               = 4096
	TIMEOUT   time.Duration = time.Duration(5) * time.Second
	RATELIMIT uint          = 100
)

Variables

This section is empty.

Functions

func TestServer

func TestServer(server string) (edns0 bool, bind string, nsid string, dnscookies bool, err error)

Types

type IPlist

type IPlist struct {
	Access  sync.Mutex
	List    []*net.IP
	Results []IpCap
}

func (*IPlist) AddIP

func (self *IPlist) AddIP(ip net.IP, wg *sync.WaitGroup)

func (*IPlist) Capability

func (self *IPlist) Capability(ip net.IP, wg *sync.WaitGroup)

func (*IPlist) Init

func (self *IPlist) Init()

type IpCap

type IpCap struct {
	Ip          net.IP
	EDNS0       bool
	DNSCookies  bool
	NSID        string
	BINDVERSION string
}

Jump to

Keyboard shortcuts

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