Documentation
¶
Index ¶
- type EventStore
- func (s *EventStore) Create(ctx context.Context, orgId uuid.UUID, resource *domain.Event) error
- func (s *EventStore) DeleteOlderThan(ctx context.Context, cutoffTime time.Time) (int64, error)
- func (s *EventStore) InitialMigration(ctx context.Context) error
- func (s *EventStore) List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.EventList, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
func (*EventStore) DeleteOlderThan ¶
DeleteOlderThan deletes events older than the provided timestamp
func (*EventStore) InitialMigration ¶
func (s *EventStore) InitialMigration(ctx context.Context) error
type Store ¶
type Store interface {
InitialMigration(ctx context.Context) error
Create(ctx context.Context, orgId uuid.UUID, event *domain.Event) error
List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.EventList, error)
DeleteOlderThan(ctx context.Context, cutoffTime time.Time) (int64, error)
}
func NewEventStore ¶
func NewEventStore(db *gorm.DB, log logrus.FieldLogger) Store
Click to show internal directories.
Click to hide internal directories.