nameresolution

package
v1.6.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 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