Documentation ¶
Index ¶
- type DNSCache
- func (c *DNSCache) Add(msg *dns.Msg)
- func (c *DNSCache) AddRR(rr dns.RR, permanent bool) error
- func (c *DNSCache) AddRRString(entry string, permanent bool, ptr bool) error
- func (c *DNSCache) Debug() (result []string)
- func (c *DNSCache) Delete(query *dns.Msg)
- func (c *DNSCache) DeleteName(name string, qtype string, ptr bool)
- func (c *DNSCache) Flush() (total, expired int)
- func (c *DNSCache) Get(query *dns.Msg) (*dns.Msg, bool)
- func (c *DNSCache) GetName(qname string, qtype string) (*dns.Msg, bool)
- type DNSCacheItem
- type DNSCacheKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSCache ¶
type DNSCache struct { sync.RWMutex Cache map[DNSCacheKey]DNSCacheItem }
func (*DNSCache) AddRRString ¶
type DNSCacheItem ¶
func (DNSCacheItem) String ¶
func (i DNSCacheItem) String() string
type DNSCacheKey ¶
func (DNSCacheKey) String ¶
func (k DNSCacheKey) String() string
Click to show internal directories.
Click to hide internal directories.