models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	RowID int64  `gorm:"column:id"`
	ID    string `gorm:"column:activity_id"`

	InstanceID      string
	ExecutionID     string
	EventType       uint
	Timestamp       time.Time
	ScheduleEventID int64
	VisibleAt       *time.Time
	Queue           string
	LockedUntil     *time.Time
	Worker          *string
}

func (Activity) TableName

func (Activity) TableName() string

type Attribute

type Attribute struct {
	ID          string `gorm:"column:event_id"`
	InstanceID  string
	ExecutionID string
	Data        []byte
}

func (Attribute) TableName

func (Attribute) TableName() string

type EventPayload

type EventPayload struct {
	ID              string
	SequenceID      int64
	EventType       uint
	Timestamp       time.Time
	ScheduleEventID int64
	VisibleAt       *time.Time
	InstanceID      string
	ExecutionID     string
	Data            []byte
}

type HistoryEvent

type HistoryEvent struct {
	RowID           int64  `gorm:"column:id"`
	ID              string `gorm:"column:event_id"`
	SequenceID      int64
	InstanceID      string
	ExecutionID     string
	EventType       uint
	Timestamp       time.Time
	ScheduleEventID int64
	VisibleAt       *time.Time
}

func (HistoryEvent) TableName

func (HistoryEvent) TableName() string

type Instance

type Instance struct {
	ID                    string `gorm:"column:instance_id"`
	ExecutionID           string
	ParentInstanceID      *string
	ParentExecutionID     *string
	ParentScheduleEventID *int64
	Metadata              []byte
	State                 int
	Queue                 string
	CreatedAt             time.Time
	CompletedAt           *time.Time
	LockedUntil           *time.Time
	StickyUntil           *time.Time
	Worker                *string
}

func (Instance) TableName

func (Instance) TableName() string

type PendingEvent

type PendingEvent struct {
	RowID           int64  `gorm:"column:id"`
	ID              string `gorm:"column:event_id"`
	SequenceID      int64
	InstanceID      string
	ExecutionID     string
	EventType       uint
	Timestamp       time.Time
	ScheduleEventID int64
	VisibleAt       *time.Time
}

func (PendingEvent) TableName

func (PendingEvent) TableName() string

type QueueCount

type QueueCount struct {
	Queue string
	Count int64
}

Jump to

Keyboard shortcuts

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