pubsub_factory

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SingletonInmemProvider string = "singleton_inmem"

Variables

This section is empty.

Functions

func MakeSingletonInmemPubsub

func MakeSingletonInmemPubsub(serializer message.Serializer, app app_context.Context, poolService *pool.PoolServiceBinding) (*pubsub_inmem.PubsubInmem, error)

func ResetSingletonInmemPubsub

func ResetSingletonInmemPubsub()

Types

type PubsubConfig

type PubsubConfig struct {
	PoolService   *pool.PoolServiceBinding
	ConfigKeyPath string
}

func (*PubsubConfig) GetConfigKeyPath

func (p *PubsubConfig) GetConfigKeyPath() string

func (*PubsubConfig) GetPoolService

func (p *PubsubConfig) GetPoolService() *pool.PoolServiceBinding

type PubsubConfigI

type PubsubConfigI interface {
	GetPoolService() *pool.PoolServiceBinding
	GetConfigKeyPath() string
}

type PubsubFactory

type PubsubFactory interface {
	MakePublisher(app app_context.Context, config ...PubsubConfigI) (pubsub.Publisher, error)
	MakeSubscriber(app app_context.Context, config ...PubsubConfigI) (pubsub_subscriber.Subscriber, error)
}

func DefaultPubsubFactory

func DefaultPubsubFactory(serializer ...message.Serializer) PubsubFactory

type PubsubFactoryBase

type PubsubFactoryBase struct {
	// contains filtered or unexported fields
}

func (*PubsubFactoryBase) MakeInmemPubsub

func (p *PubsubFactoryBase) MakeInmemPubsub(app app_context.Context, poolService *pool.PoolServiceBinding) (*pubsub_inmem.PubsubInmem, error)

func (*PubsubFactoryBase) MakePublisher

func (p *PubsubFactoryBase) MakePublisher(app app_context.Context, config ...PubsubConfigI) (pubsub.Publisher, error)

func (*PubsubFactoryBase) MakeSubscriber

Jump to

Keyboard shortcuts

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