Skip to content

Commit

Permalink
chore: update design doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bounoable committed Jan 14, 2021
1 parent 12a4b67 commit e28a816
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/design/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ type exampleEvent struct {
FieldA string
}

bus := eventbus.New(nats.New())
bus := nats.New()

// Publish an "example" Event
err := bus.Publish(context.TODO(), event.New("example", exampleEvent{
Expand Down Expand Up @@ -135,7 +135,7 @@ err := store.Insert(context.TODO(), event.New(...))
store, err := mongostore.New(...)
// handle err

bus := eventbus.New(nats.New(), eventbus.WithStore(store))
bus := eventbus.WithStore(nats.New(), store)

// Publish and store Event
err := bus.Publish(context.TODO(), event.New(...))
Expand Down
2 changes: 1 addition & 1 deletion docs/design/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This project aims to provide a progressively adaptable CQRS & Event Sourcing
framework for the Go language.

- Last updated: 2021/01/13
- Last updated: 2021/01/14
- Status: Planning
- Stakeholders:
- [@bounoable](https://github.com/bounoable)
Expand Down

0 comments on commit e28a816

Please sign in to comment.