dns

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig interface {
	TrustedSource() []string
}

type DnsCache

type DnsCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewCache

func NewCache() *DnsCache

func (*DnsCache) Add

func (this *DnsCache) Add(domain string, ip net.IP)

func (*DnsCache) Get

func (this *DnsCache) Get(domain string) net.IP

Jump to

Keyboard shortcuts

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