brokers

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSidecarConnectionVars

func GetSidecarConnectionVars(broker string) *models.ConnectionVariables

GetSidecarConnectionVars returns port enviroment variable names for each possible broker

Types

type AbstractBrokerFactory

type AbstractBrokerFactory struct {
}

AbstractBrokerFactory singleton and abstract factory implementation for SidecarInterface

func (*AbstractBrokerFactory) Get

Get returns a factory for the specifyed broker

func (*AbstractBrokerFactory) Subscribe

func (abf *AbstractBrokerFactory) Subscribe(broker string, factory models.SidecarFactory) error

Subscribe includes a broker specific factory on the Abstract broker factory

type Manager

type Manager interface {
	Get() (*apimodels.BrokersDI, error)
	Create(config brokers.BrokerConfiguration) error
	SetDefault(broker string) error
	Factory() SidecarManager
	Configs(broker string) (brokers.BrokerConfiguration, error)
}

Manager is the interface that allows for interaction with the systems multiple brokers and its configurations.

func GetBrokerMemory

func GetBrokerMemory() Manager

GetBrokerMemory allows for connection with BrokersManager sigleton

type SidecarManager

type SidecarManager interface {
	Get(broker string) (models.SidecarFactory, error)
	Subscribe(broker string, factory models.SidecarFactory) error
}

SidecarManager is the interface that allows the build and deployment of available brokers

Jump to

Keyboard shortcuts

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