dns

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: MIT Imports: 4 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 {
	IsTrustedSource(tag string) bool
}

type DnsCache

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

func NewCache

func NewCache(config CacheConfig) *DnsCache

func (*DnsCache) Add

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

func (*DnsCache) Get

func (this *DnsCache) Get(context app.Context, domain string) net.IP

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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