dnscache

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextDialer

type ContextDialer = func(ctx context.Context, network, address string) (net.Conn, error)

func WrapDialer

func WrapDialer(dialer ContextDialer, resolver Resolver, size int, posTTL, negTTL, timeout time.Duration) ContextDialer

type Resolver added in v1.4.0

type Resolver interface {
	LookupNetIP(ctx context.Context, network, host string) ([]netip.Addr, error)
}

Jump to

Keyboard shortcuts

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