memory

package
v0.0.0-...-213afb2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2015 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	Cache map[string]MemoryCacheRecord
}

func (*Memory) Add

func (this *Memory) Add(message *dns.Msg) error

func (*Memory) Get

func (this *Memory) Get(message *dns.Msg) (bool, *dns.Msg, error)

type MemoryCacheRecord

type MemoryCacheRecord struct {
	Expiry time.Time
	Record dns.Msg
}

Jump to

Keyboard shortcuts

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