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

nameresolution

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 4 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, version 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