event

package
v1.5.0-main Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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