event

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListRequest

type ListRequest struct {
	Type          string
	Source        string
	CreatedAfter  *time.Time
	CreatedBefore *time.Time
	Limit         uint64
	Offset        uint64
}

func ListRequestFromValues

func ListRequestFromValues(values url.Values) (*ListRequest, error)

type Service

type Service interface {
	ListIngested(*ListRequest) ([]models.IngestedEvent, error)
	ListTriggerEvents(uuid.UUID, *ListRequest) ([]TriggerEvent, error)
}

func New

func New(ctx context.Context) Service

func NewWithDatabase

func NewWithDatabase(ctx context.Context, conn *gorm.DB) Service

type TriggerEvent

type TriggerEvent struct {
	MatchID     uuid.UUID      `json:"match_id"`
	EventID     uuid.UUID      `json:"event_id"`
	TriggerID   uuid.UUID      `json:"trigger_id"`
	Type        string         `json:"type"`
	Source      string         `json:"source,omitempty"`
	Data        datatypes.JSON `json:"data,omitempty"`
	CreatedAt   time.Time      `json:"created_at"`
	MatchedAt   time.Time      `json:"matched_at"`
	RunsStarted []uuid.UUID    `json:"runs_started,omitempty"`
	Skipped     bool           `json:"skipped"`
	SkipReason  string         `json:"skip_reason,omitempty"`
	Error       string         `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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