| giolekva | f89e046 | 2020-05-02 17:47:06 +0400 | [diff] [blame] | 1 | package events |
| 2 | |||||
| 3 | type EventState string | ||||
| 4 | |||||
| 5 | const ( | ||||
| 6 | EventStateNew EventState = "NEW" | ||||
| 7 | EventStateProcessing EventState = "PROCESSING" | ||||
| 8 | EventStateDone EventState = "DONE" | ||||
| 9 | ) | ||||
| 10 | |||||
| 11 | type Event struct { | ||||
| 12 | Id string | ||||
| 13 | State EventState | ||||
| 14 | NodeId string | ||||
| 15 | } | ||||
| 16 | |||||
| 17 | type EventStore interface { | ||||
| 18 | GetEventsInState(state EventState) ([]Event, error) | ||||
| 19 | } | ||||