mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 01:17:44 +00:00
26 lines
489 B
Go
26 lines
489 B
Go
package eventstore
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/zitadel/zitadel/backend/storage/database"
|
|
)
|
|
|
|
type Eventstore struct {
|
|
executor database.Executor
|
|
}
|
|
|
|
func New(executor database.Executor) *Eventstore {
|
|
return &Eventstore{executor: executor}
|
|
}
|
|
|
|
type Event interface{}
|
|
|
|
func (e *Eventstore) Push(ctx context.Context, events ...Event) error {
|
|
return nil
|
|
}
|
|
|
|
func Push(ctx context.Context, executor database.Executor, events ...Event) error {
|
|
return New(executor).Push(ctx, events...)
|
|
}
|