pubsub

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 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 Config

type Config struct {
	ref.Config
	Type     string            `json:"type"`
	Metadata map[string]string `json:"metadata"`
}

Config wraps configuration for a pubsub implementation

type Factory

type Factory struct {
	CompType      string
	FactoryMethod func() pubsub.PubSub
}

func NewFactory

func NewFactory(compType string, f func() pubsub.PubSub) *Factory

type Registry

type Registry interface {
	Register(fs ...*Factory)
	Create(compType string) (dpubsub.PubSub, error)
}

Registry is the pubsub registry with pubsub name as the key

func NewRegistry

func NewRegistry(info *info.RuntimeInfo) Registry

Jump to

Keyboard shortcuts

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