nameresolver

package
v0.0.0-...-e30ce0b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}
var DefaultRegistry *Registry = NewRegistry()

DefaultRegistry is the singleton with the registry.

func NewRegistry

func NewRegistry() *Registry

NewRegistry returns a new pub sub registry.

func (*Registry) Create

func (p *Registry) Create(name, version string) (nameresolver.Resolver, error)

Create instantiates a pub/sub based on `name`.

func (*Registry) RegisterComponent

func (p *Registry) RegisterComponent(componentFactory func() nameresolver.Resolver, names ...string)

RegisterComponent adds a new message bus to the registry.

Jump to

Keyboard shortcuts

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