cache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquireQueue

type AcquireQueue struct {
	// contains filtered or unexported fields
}

func (*AcquireQueue) Add

func (aq *AcquireQueue) Add(key string, msg libdns.Msg)

func (*AcquireQueue) Run

func (aq *AcquireQueue) Run(c *Cache)

type Cache

type Cache struct {
	Queue   AcquireQueue
	Acquire func(query *libdns.Msg) (err error)
	// contains filtered or unexported fields
}

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Open

func (c *Cache) Open() error

func (*Cache) Remember

func (c *Cache) Remember(query *libdns.Msg) error

type Payload

type Payload struct {
	// contains filtered or unexported fields
}

type TimedRR

type TimedRR struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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