nuts-foundation / nuts-event-octopus

Nuts service space engine for making sure events are caught and relayed.
GNU General Public License v3.0
0 stars 0 forks source link

Add eventStore and Rest Api #2

Closed stevenvegt closed 4 years ago

stevenvegt commented 4 years ago

This PR adds an Event store which listens to nats events and stores the event in a database. The store contains the current state of all the events. If the cluster fails and gets rebooted, all not-completed events can be replayed to continue their flows. The rest api allows clients to get a list of events or just 1 event by its uuid or externalId.

codecov[bot] commented 4 years ago

Codecov Report

Merging #2 into master will increase coverage by 2.35%. The diff coverage is 67.02%.

Impacted Files Coverage Δ
pkg/types.go 0% <0%> (ø)
pkg/events.go 67.2% <67.75%> (+3.07%) :arrow_up: