diff --git a/internal/events/proces_events.go b/internal/events/proces_events.go deleted file mode 100644 index e4ea343..0000000 --- a/internal/events/proces_events.go +++ /dev/null @@ -1,27 +0,0 @@ -package events - -import ( - "github.com/PiotrFerenc/mash2/internal/types" - "github.com/google/uuid" - "time" -) - -type Event struct { - CreatedAt time.Time - StreamId uuid.UUID -} - -type ProcessEvent interface { - ProcessEvent() *Event -} - -type ProcessCreated struct { - Process types.Process -} - -func (p ProcessCreated) ProcessEvent() *Event { - return &Event{ - CreatedAt: time.Now(), - StreamId: p.Process.Id, - } -} diff --git a/internal/repositories/event-store.go b/internal/repositories/event-store.go deleted file mode 100644 index d313b5c..0000000 --- a/internal/repositories/event-store.go +++ /dev/null @@ -1,7 +0,0 @@ -package repositories - -import "github.com/PiotrFerenc/mash2/internal/events" - -type EventStore interface { - AddEvent(event events.Event) error -}