Documentation ¶ Index ¶ type CacheConfig type DnsCache func NewCache(config CacheConfig) *DnsCache func (this *DnsCache) Add(context app.Context, domain string, ip net.IP) func (this *DnsCache) Get(context app.Context, domain string) net.IP 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 Source Files ¶ View all Source files config.go dns.go Directories ¶ Show internal Expand all Path Synopsis json testing Click to show internal directories. Click to hide internal directories.