Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryStore ¶
type HistoryStore interface {
SaveTransition(record *TransitionRecord) error
ListHistory(workflowID string, opts QueryOptions) ([]TransitionRecord, error)
GenerateSchema() string
Initialize() error
}
HistoryStore is the interface for saving and querying transition history.
type QueryOptions ¶
type QueryOptions struct {
Limit int
Offset int
FromDate *time.Time
ToDate *time.Time
Actor string
Transition string
}
QueryOptions allows for pagination and filtering.
type SQLiteHistory ¶
type SQLiteHistory struct {
// contains filtered or unexported fields
}
func NewSQLiteHistory ¶
func NewSQLiteHistory(db *sql.DB, opts ...Option) *SQLiteHistory
func (*SQLiteHistory) GenerateSchema ¶
func (h *SQLiteHistory) GenerateSchema() string
func (*SQLiteHistory) Initialize ¶
func (h *SQLiteHistory) Initialize() error
func (*SQLiteHistory) ListHistory ¶
func (h *SQLiteHistory) ListHistory(workflowID string, opts QueryOptions) ([]TransitionRecord, error)
func (*SQLiteHistory) SaveTransition ¶
func (h *SQLiteHistory) SaveTransition(record *TransitionRecord) error
Click to show internal directories.
Click to hide internal directories.