querycache

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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