stubresolver

package
v0.0.0-...-c8b0a90 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FqdnFromContext

func FqdnFromContext(ctx context.Context) (string, bool)

FqdnFromContext returns the Fqdn value stored in ctx, if any.

func NewFqdnContext

func NewFqdnContext(ctx context.Context, fqdn string) context.Context

NewFqdnContext returns a new Context that carries fqdn.

Types

type StubResolver

type StubResolver struct{}

stores the name in the context, doesn't actually resolve; * extract with FqdnFromContext

func (StubResolver) Resolve

func (StubResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)

Jump to

Keyboard shortcuts

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