msg

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 6 Imported by: 11

Documentation

Index

Constants

View Source
const (
	TypeCreate     = 1
	TypeUpdate     = 2
	TypeDelete     = 3
	TypeActivate   = 4
	TypeDeactivate = 5
	TypeNewJob     = 6

	SourceTradingSystem  = "trading-system"
	SourceDataProduct    = "data-product"
	SourceBrokerProduct  = "broker-product"
	SourceConnection     = "connection"
	SourcePortfolio      = "portfolio"
	SourceTradingSession = "trading-session"

	SourceUploadJob = "upload-job"

	SourceTrade = "trade"
)
View Source
const ExCollector = "bf.collector"
View Source
const ExInventory = "bf.inventory"
View Source
const ExRuntime = "bf.runtime"
View Source
const QuCollectorToIngester = "bf.collector:ingester"
View Source
const QuInventoryToCollector = "bf.inventory:collector"
View Source
const QuInventoryToPortfolio = "bf.inventory:portfolio"
View Source
const QuRuntimeToPortfolio = "bf.runtime:portfolio"

Variables

This section is empty.

Functions

func InitMessaging

func InitMessaging(cfg *core.Messaging)

func PublishToExchange

func PublishToExchange(exchange string, message any) error

func ReceiveMessages

func ReceiveMessages(queue string, handler func(m *Message) bool)

func SendMessage

func SendMessage(exchange string, source string, msgType int, entity any) error

Types

type Message

type Message struct {
	Source string
	Type   int
	Entity []byte
}

Jump to

Keyboard shortcuts

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