resolv

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheClearDuration  = 60 * 60 * time.Second
	MAX_CACHE_SIZE_NAME = "KentikMaxDnsCacheSize"
	RESOLVE_TIME_MAX    = time.Duration(time.Millisecond * 80)
)

Variables

View Source
var (
	MAX_CACHE_SIZE = 10000 // Cache up to 10K ips.
)

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	logger.ContextL
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(ctx context.Context, log logger.Underlying, dnsHost string) (*Resolver, error)

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, ip string, log bool) string

Jump to

Keyboard shortcuts

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