cache

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-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 MaybeFlatten

type MaybeFlatten int
const (
	Flatten MaybeFlatten = iota
	DoNotFlatten
)

type RcCache

type RcCache struct {
	Entries map[string]RcCacheEntry
	BackRef map[string]string
}

func (*RcCache) Get

func (c *RcCache) Get(name string) ([]dns.RR, bool, uint32)

func (*RcCache) Set

func (c *RcCache) Set(flatten MaybeFlatten, name string, dnsType uint16, targets []dns.RR, ttl uint32)

type RcCacheEntry

type RcCacheEntry struct {
	Type     uint16
	ExpireTS int64
	Targets  []dns.RR
}

Jump to

Keyboard shortcuts

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