Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionStateModel ¶ added in v0.8.3
type ExecutionStateModel struct {
ID uint `gorm:"primaryKey"`
WorkflowID string `gorm:"size:128;index:idx_workflow_run,unique"`
RunID string `gorm:"size:128;index:idx_workflow_run,unique"`
Status string `gorm:"size:64"`
StartedAt time.Time
UpdatedAt time.Time
Nodes datatypes.JSON `gorm:"type:json"`
CreatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
type GormStateStore ¶ added in v0.8.3
type GormStateStore struct {
// contains filtered or unexported fields
}
func NewGormStateStore ¶ added in v0.8.3
func NewGormStateStore(db *gorm.DB) (*GormStateStore, error)
func (*GormStateStore) Load ¶ added in v0.8.3
func (s *GormStateStore) Load(_ context.Context, workflowID, runID string) (*workflow.ExecutionState, error)
func (*GormStateStore) Save ¶ added in v0.8.3
func (s *GormStateStore) Save(_ context.Context, state *workflow.ExecutionState) error
type InMemoryState ¶
type InMemoryState struct {
// contains filtered or unexported fields
}
func (*InMemoryState) Load ¶
func (s *InMemoryState) Load() (PipelineState, error)
func (*InMemoryState) Save ¶
func (s *InMemoryState) Save(state PipelineState) error
type MemoryStateStore ¶ added in v0.8.3
type MemoryStateStore struct {
// contains filtered or unexported fields
}
func NewMemoryStateStore ¶ added in v0.8.3
func NewMemoryStateStore() *MemoryStateStore
func (*MemoryStateStore) Load ¶ added in v0.8.3
func (s *MemoryStateStore) Load(_ context.Context, workflowID, runID string) (*workflow.ExecutionState, error)
func (*MemoryStateStore) Save ¶ added in v0.8.3
func (s *MemoryStateStore) Save(_ context.Context, state *workflow.ExecutionState) error
Click to show internal directories.
Click to hide internal directories.