rabbit

package
v0.0.0-...-60d78a2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rabbit provides an event and command bus for the CQRS and Event Sourcing framework

Current version: experimental

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
}

func NewEventBus

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

func (*EventBus) PublishEvents

func (bus *EventBus) PublishEvents(events []cqrs.VersionedEvent) error

func (*EventBus) ReceiveEvents

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

type RawVersionedEvent

type RawVersionedEvent struct {
	ID        string    `json:"id"`
	SourceID  string    `json:"sourceID"`
	Version   int       `json:"version"`
	EventType string    `json:"eventType"`
	Created   time.Time `json:"time"`
	Event     json.RawMessage
}

Jump to

Keyboard shortcuts

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