Help us shape the future of Go! Take the 2026 Go Developer Survey

resolver

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromURL

func FromURL(u string, caPool *x509.CertPool) (*net.Resolver, error)

func NewPlainResolver

func NewPlainResolver(addr string) *net.Resolver

func NewTCPResolver

func NewTCPResolver(addr string) *net.Resolver

Types

type FastResolver

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

func NewFastResolver

func NewFastResolver(resolvers ...LookupNetIPer) *FastResolver

func (FastResolver) LookupNetIP

func (r FastResolver) LookupNetIP(ctx context.Context, network, host string) ([]netip.Addr, error)

type LookupNetIPer

type LookupNetIPer interface {
	LookupNetIP(context.Context, string, string) ([]netip.Addr, error)
}

func FastFromURLs

func FastFromURLs(caPool *x509.CertPool, urls ...string) (LookupNetIPer, error)

Jump to

Keyboard shortcuts

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