rabbit

package
v0.0.0-...-fc38f95 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBus

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

EventBus ...

func NewEventBus

func NewEventBus(brokerDSN string, name string, exchange string) *EventBus

NewEventBus ...

func (*EventBus) DeleteQueue

func (bus *EventBus) DeleteQueue(name string) error

DeleteQueue will delete a queue

func (*EventBus) PublishEvents

func (bus *EventBus) PublishEvents(events []*goengine.DomainMessage) error

PublishEvents will publish events

func (*EventBus) ReceiveEvents

func (bus *EventBus) ReceiveEvents(options goengine.VersionedEventReceiverOptions) error

ReceiveEvents will receive events

type RawVersionedEvent

type RawVersionedEvent struct {
	ID         string          `bson:"aggregate_id,omitempty"`
	Version    int             `bson:"version"`
	Type       string          `bson:"type"`
	Payload    json.RawMessage `bson:"payload"`
	RecordedOn time.Time       `bson:"recorded_on"`
}

RawVersionedEvent represents the event that goes into rabbitmq

Jump to

Keyboard shortcuts

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