Documentation
¶
Index ¶
- type Store
- func (s *Store) AppendHistory(ctx context.Context, executionID string, entryType string, ...) error
- func (s *Store) CompleteTask(ctx context.Context, taskID string, result map[string]any) error
- func (s *Store) CreateExecution(ctx context.Context, execution *runtime.Execution) error
- func (*Store) Durability() runtime.StoreDurability
- func (s *Store) EnqueueTask(ctx context.Context, task *runtime.ActivityTask) error
- func (s *Store) FailTask(ctx context.Context, taskID string, errorMessage string) error
- func (s *Store) FindTask(ctx context.Context, executionID string, ruleName string, activityName string, ...) (*runtime.ActivityTask, error)
- func (s *Store) GetExecution(ctx context.Context, id string) (*runtime.Execution, error)
- func (s *Store) HeartbeatTask(ctx context.Context, taskID string, workerID string) error
- func (s *Store) ListHistory(ctx context.Context, executionID string) ([]runtime.HistoryEntry, error)
- func (s *Store) ListTasks(ctx context.Context, executionID string) ([]*runtime.ActivityTask, error)
- func (s *Store) NextTaskSeq(ctx context.Context, executionID string) (int, error)
- func (s *Store) PollTask(ctx context.Context, executionID string) (*runtime.ActivityTask, error)
- func (s *Store) PollTaskWithLease(ctx context.Context, executionID string, workerID string, ...) (*runtime.ActivityTask, error)
- func (s *Store) RecoverExpiredLeases(ctx context.Context, executionID string, leaseTTL time.Duration) (int, error)
- func (s *Store) SaveExecution(ctx context.Context, execution *runtime.Execution) error
- func (s *Store) UpdateTask(ctx context.Context, task *runtime.ActivityTask) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AppendHistory ¶
func (*Store) CompleteTask ¶
func (*Store) CreateExecution ¶
CreateExecution stores a new execution in memory. The in-memory store does not use context for cancellation; operations are instantaneous under a mutex.
func (*Store) Durability ¶
func (*Store) Durability() runtime.StoreDurability
Durability reports that the in-memory store is process-local.
func (*Store) EnqueueTask ¶
func (*Store) GetExecution ¶
func (*Store) HeartbeatTask ¶
func (*Store) ListHistory ¶
func (*Store) NextTaskSeq ¶
func (*Store) PollTaskWithLease ¶
func (*Store) RecoverExpiredLeases ¶
func (*Store) SaveExecution ¶
func (*Store) UpdateTask ¶
Click to show internal directories.
Click to hide internal directories.