example

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package example provides the example scenario utilizing couchbase and rabbitmq infastructure components

func TestEventSourcingWithCouchbase(t *testing.T) {
  persistance, error := couchbase.NewEventStreamRepository("http://localhost:8091/")
  if error != nil {
    t.Fatal(error)
  }

  RunScenario(t, persistance)
}

func RunScenario(t *testing.T, persistance cqrs.EventStreamRepository) {
  bus := rabbit.NewEventBus("amqp://guest:guest@localhost:5672/", "example_test", "testing.example")
  repository := cqrs.NewRepositoryWithPublisher(persistance, bus)
  ...
}

Jump to

Keyboard shortcuts

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