Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainList ¶
type DomainList struct {
Domains []string
}
type ReverseCache ¶
type ReverseCache struct {
// contains filtered or unexported fields
}
func New ¶
func New(maxEntries int) *ReverseCache
func (*ReverseCache) Add ¶
func (c *ReverseCache) Add(ip ip.Addr, domains *DomainList, ttl int)
func (*ReverseCache) Get ¶
func (c *ReverseCache) Get(ip ip.Addr) (value *DomainList, ok bool)
func (*ReverseCache) Remove ¶
func (c *ReverseCache) Remove(ip ip.Addr)
func (*ReverseCache) RemoveOldest ¶
func (c *ReverseCache) RemoveOldest()
Click to show internal directories.
Click to hide internal directories.