event

package
v1.3.0-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Create

func (s *EventStore) Create(ctx context.Context, orgId uuid.UUID, resource *domain.Event) error

func (*EventStore) DeleteOlderThan

func (s *EventStore) DeleteOlderThan(ctx context.Context, cutoffTime time.Time) (int64, error)

DeleteOlderThan deletes events older than the provided timestamp

func (*EventStore) InitialMigration

func (s *EventStore) InitialMigration(ctx context.Context) error

func (*EventStore) List

func (s *EventStore) List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.EventList, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL