refactor(eventstore): sql

This commit is contained in:
adlerhurst
2020-10-05 19:09:26 +02:00
parent eb51a429ff
commit 120a8bae85
11 changed files with 359 additions and 409 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/caos/zitadel/internal/eventstore/v2/repository"
)
// testEvent implements the Event interface
type testEvent struct {
description string
shouldCheckPrevious bool
@@ -17,6 +18,23 @@ func (e *testEvent) CheckPrevious() bool {
return e.shouldCheckPrevious
}
func (e *testEvent) EditorService() string {
return "editorService"
}
func (e *testEvent) EditorUser() string {
return "editorUser"
}
func (e *testEvent) Type() EventType {
return "test.event"
}
func (e *testEvent) Data() interface{} {
return nil
}
func (e *testEvent) PreviousSequence() uint64 {
return 0
}
func testPushMapper(Event) (*repository.Event, error) {
return &repository.Event{AggregateID: "aggregateID"}, nil
}