nameresolution

package
v1.9.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryMethod added in v1.9.0

type FactoryMethod func(logger.Logger) nr.Resolver

type Registry

type Registry struct {
	Logger logger.Logger
	// contains filtered or unexported fields
}

Registry handles registering and creating name resolution components.

var DefaultRegistry *Registry

DefaultRegistry is the singleton with the registry.

func NewRegistry

func NewRegistry() *Registry

NewRegistry creates a name resolution registry.

func (*Registry) Create

func (s *Registry) Create(name, version string) (nr.Resolver, error)

Create instantiates a name resolution resolver based on `name`.

func (*Registry) RegisterComponent added in v1.9.0

func (s *Registry) RegisterComponent(componentFactory FactoryMethod, names ...string)

RegisterComponent adds a name resolver to the registry.

Jump to

Keyboard shortcuts

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