stringresolver

package
v4.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "string"

Type is the identifier of the string resolver

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver is a resolver for string-based host queries

func NewResolver

func NewResolver(sorted bool) *Resolver

NewResolver creates a new string resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(_ context.Context, query string) (hostList hosts.Hosts, err error)

Resolve accepts a comma-separated list of hosts and returns them sorted and deduplicated in a Hosts array

Jump to

Keyboard shortcuts

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