nameresolution

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameResolution

type NameResolution struct {
	Name          string
	FactoryMethod func() nr.Resolver
}

NameResolution is a name resolution component definition.

func New

func New(name string, factoryMethod func() nr.Resolver) NameResolution

New creates a NameResolution.

type Registry

type Registry interface {
	Register(components ...NameResolution)
	Create(name string) (nr.Resolver, error)
}

Registry handles registering and creating name resolution components.

func NewRegistry

func NewRegistry() Registry

NewRegistry creates a name resolution registry.

Jump to

Keyboard shortcuts

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