Documentation
¶
Overview ¶
Package db owns sqlite connection setup and the backend's immutable migration history.
Index ¶
- func MigrateUp(pool *sql.DB) error
- func Open(pool *sql.DB) (*gorm.DB, error)
- type Store
- func (s *Store) CancelWorkflowInstance(ctx context.Context, instance *core.WorkflowInstance, event *history.Event) error
- func (s *Store) Close() error
- func (s *Store) CompleteActivityTask(ctx context.Context, task *backend.ActivityTask, result *history.Event) error
- func (s *Store) CompleteWorkflowTask(ctx context.Context, task *backend.WorkflowTask, ...) error
- func (s *Store) CreateWorkflowInstance(ctx context.Context, instance *core.WorkflowInstance, event *history.Event) error
- func (s *Store) ExtendActivityTask(ctx context.Context, task *backend.ActivityTask) error
- func (s *Store) ExtendWorkflowTask(ctx context.Context, task *backend.WorkflowTask) error
- func (s *Store) FeatureSupported(backend.Feature) bool
- func (s *Store) GetActivityTask(ctx context.Context, queues []core.Queue) (*backend.ActivityTask, error)
- func (s *Store) GetFutureEvents(ctx context.Context) ([]*history.Event, error)
- func (s *Store) GetStats(ctx context.Context) (*backend.Stats, error)
- func (s *Store) GetWorkflowInstance(ctx context.Context, instance *core.WorkflowInstance) (*diag.WorkflowInstanceRef, error)
- func (s *Store) GetWorkflowInstanceHistory(ctx context.Context, instance *core.WorkflowInstance, after *int64) ([]*history.Event, error)
- func (s *Store) GetWorkflowInstanceState(ctx context.Context, instance *core.WorkflowInstance) (core.WorkflowInstanceState, error)
- func (s *Store) GetWorkflowInstances(ctx context.Context, afterID, afterExecutionID string, count int) ([]*diag.WorkflowInstanceRef, error)
- func (s *Store) GetWorkflowTask(ctx context.Context, queues []core.Queue) (*backend.WorkflowTask, error)
- func (s *Store) GetWorkflowTree(ctx context.Context, instance *core.WorkflowInstance) (*diag.WorkflowInstanceTree, error)
- func (s *Store) Metrics() metrics.Client
- func (s *Store) Options() *backend.Options
- func (s *Store) PrepareActivityQueues(context.Context, []core.Queue) error
- func (s *Store) PrepareWorkflowQueues(context.Context, []core.Queue) error
- func (s *Store) RemoveWorkflowInstance(ctx context.Context, instance *core.WorkflowInstance) error
- func (s *Store) RemoveWorkflowInstances(ctx context.Context, options ...backend.RemovalOption) error
- func (s *Store) SignalWorkflow(ctx context.Context, instanceID string, event *history.Event) error
- func (s *Store) Tracer() trace.Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store binds generated queries to one worker's connection, never a global query.
func (*Store) CancelWorkflowInstance ¶
func (*Store) CompleteActivityTask ¶
func (*Store) CompleteWorkflowTask ¶
func (s *Store) CompleteWorkflowTask( ctx context.Context, task *backend.WorkflowTask, state core.WorkflowInstanceState, executed, activities, timers []*history.Event, workflowEvents []*history.WorkflowEvent, ) error
func (*Store) CreateWorkflowInstance ¶
func (*Store) ExtendActivityTask ¶
func (*Store) ExtendWorkflowTask ¶
func (*Store) GetActivityTask ¶
func (*Store) GetFutureEvents ¶
func (*Store) GetWorkflowInstance ¶
func (s *Store) GetWorkflowInstance(ctx context.Context, instance *core.WorkflowInstance) (*diag.WorkflowInstanceRef, error)
func (*Store) GetWorkflowInstanceHistory ¶
func (*Store) GetWorkflowInstanceState ¶
func (s *Store) GetWorkflowInstanceState(ctx context.Context, instance *core.WorkflowInstance) (core.WorkflowInstanceState, error)
func (*Store) GetWorkflowInstances ¶
func (*Store) GetWorkflowTask ¶
func (*Store) GetWorkflowTree ¶
func (s *Store) GetWorkflowTree(ctx context.Context, instance *core.WorkflowInstance) (*diag.WorkflowInstanceTree, error)
func (*Store) PrepareActivityQueues ¶
func (*Store) PrepareWorkflowQueues ¶
func (*Store) RemoveWorkflowInstance ¶
func (*Store) RemoveWorkflowInstances ¶
func (*Store) SignalWorkflow ¶
Click to show internal directories.
Click to hide internal directories.