reverse_cache

package
v0.0.0-...-3ea0f55 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2014 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 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()

Jump to

Keyboard shortcuts

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