pubsub

package
v1.15.9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 5 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCPubSub added in v1.9.0

func NewGRPCPubSub(l logger.Logger, socket string) *grpcPubSub

NewGRPCPubSub creates a new grpc pubsub using the given socket factory.

Types

type Registry

type Registry struct {
	Logger logger.Logger
	// 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 added in v0.4.0

func (p *Registry) Create(name, version, logName string) (pubsub.PubSub, error)

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

func (*Registry) RegisterComponent added in v1.9.0

func (p *Registry) RegisterComponent(componentFactory func(logger.Logger) pubsub.PubSub, 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