querycache

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func GetManager

func GetManager() *Manager

func (*Manager) Disable

func (m *Manager) Disable()

func (*Manager) Enable

func (m *Manager) Enable()

func (*Manager) Lookup

func (m *Manager) Lookup(ip string, before time.Time) string

Lookup returns the domain most recently resolved to ip at or before the given time. Returns "" if no matching entry exists.

func (*Manager) Record

func (m *Manager) Record(ip, domain string, ts time.Time)

Record stores a domain→IP resolution at the given time. ip is normalized to its canonical string form before storage.

Jump to

Keyboard shortcuts

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