rabbitmq

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: BSD-3-Clause Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageCenter

type MessageCenter struct {
	ServerUrl  string
	Connection *amqp.Connection
	Channel    *amqp.Channel
}

func (*MessageCenter) Connect

func (m *MessageCenter) Connect(channel string, attempts int, intervalSeconds int) error

func (*MessageCenter) ConsumeMessage added in v0.0.4

func (m *MessageCenter) ConsumeMessage(queue string, consumer string, autoAck bool, exclusive bool,
	noLocal bool, noWait bool, arguments map[string]interface{}) (<-chan amqp.Delivery, error)

func (*MessageCenter) CreateQueue added in v0.0.2

func (m *MessageCenter) CreateQueue(name string, durable bool, deleteUnused bool,
	exclusive bool, noWait bool, arguments map[string]interface{}) error

func (*MessageCenter) PublishMessage added in v0.0.2

func (m *MessageCenter) PublishMessage(queue string, message []byte, exchange string, mandatory bool, immediate bool, contentType string, correlationId string, replyTo string) error

func (*MessageCenter) ReceiveMessage added in v0.0.11

func (m *MessageCenter) ReceiveMessage(replyChannel chan string, queue string)

type Saga added in v0.0.5

type Saga struct {
	SagaName        string
	SagaDescription string
	ChannelName     string
	CorrelationId   string
	SagaSteps       []SagaStep
}

func (*Saga) StartSaga added in v0.0.5

func (s *Saga) StartSaga(m *MessageCenter)

type SagaStep added in v0.0.5

type SagaStep struct {
	StepName             string
	StepDescription      string
	StepSequence         int
	FunctionName         string
	CompensatingFunction string
	QueueName            string
	ReplyQueueName       string
	ActionType           string
	DataObject           []byte
	Results              []string
}

Jump to

Keyboard shortcuts

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