redis

package
v0.0.0-...-bea47b1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStorage

type RedisStorage struct {
	// contains filtered or unexported fields
}

func NewRedisStorage

func NewRedisStorage(addr string, password string, db int) *RedisStorage

func (*RedisStorage) AppendCompensationRecord

func (r *RedisStorage) AppendCompensationRecord(ctx context.Context, namespace string, rec *models.CompensationRecord) error

func (*RedisStorage) ClaimReadyStep

func (r *RedisStorage) ClaimReadyStep(ctx context.Context, namespace string, workerID string) (*models.ExecutionStep, error)

func (*RedisStorage) CreateExecution

func (r *RedisStorage) CreateExecution(ctx context.Context, namespace string, exec *models.Execution) error

func (*RedisStorage) CreateExecutionStep

func (r *RedisStorage) CreateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error

func (*RedisStorage) DeleteSchedule

func (r *RedisStorage) DeleteSchedule(ctx context.Context, namespace, id string) error

func (*RedisStorage) GetActiveSchedules

func (r *RedisStorage) GetActiveSchedules(ctx context.Context) ([]*models.Schedule, error)

func (*RedisStorage) GetExecution

func (r *RedisStorage) GetExecution(ctx context.Context, namespace string, id string) (*models.Execution, error)

func (*RedisStorage) GetExecutionStepByID

func (r *RedisStorage) GetExecutionStepByID(ctx context.Context, namespace string, id string) (*models.ExecutionStep, error)

func (*RedisStorage) GetExecutionStepByNode

func (r *RedisStorage) GetExecutionStepByNode(ctx context.Context, namespace, executionID, nodeID string) (*models.ExecutionStep, error)

func (*RedisStorage) GetExecutionSteps

func (r *RedisStorage) GetExecutionSteps(ctx context.Context, namespace string, executionID string) ([]*models.ExecutionStep, error)

func (*RedisStorage) GetSchedule

func (r *RedisStorage) GetSchedule(ctx context.Context, namespace, id string) (*models.Schedule, error)

func (*RedisStorage) GetWorkflow

func (r *RedisStorage) GetWorkflow(ctx context.Context, namespace string, id string) (*models.Workflow, error)

func (*RedisStorage) HeartbeatStep

func (r *RedisStorage) HeartbeatStep(ctx context.Context, namespace, stepID, workerID string) (bool, error)

HeartbeatStep extends the lease of a RUNNING step owned by workerID.

func (*RedisStorage) ListCompensationRecords

func (r *RedisStorage) ListCompensationRecords(ctx context.Context, namespace, executionID string) ([]*models.CompensationRecord, error)

func (*RedisStorage) ListExecutions

func (r *RedisStorage) ListExecutions(ctx context.Context, namespace string) ([]*models.Execution, error)

func (*RedisStorage) ListSchedules

func (r *RedisStorage) ListSchedules(ctx context.Context, namespace string, filter storage.ScheduleFilter) ([]*models.Schedule, error)

func (*RedisStorage) ListWaitingSteps

func (r *RedisStorage) ListWaitingSteps(ctx context.Context, namespace string, filter storage.TaskFilter) ([]*models.ExecutionStep, error)

func (*RedisStorage) ListWorkflows

func (r *RedisStorage) ListWorkflows(ctx context.Context, namespace string) ([]*models.Workflow, error)

func (*RedisStorage) RecordScheduleRun

func (r *RedisStorage) RecordScheduleRun(ctx context.Context, namespace, id string, fireAt time.Time, execID, lastErr string, nextRun *time.Time) error

func (*RedisStorage) SaveSchedule

func (r *RedisStorage) SaveSchedule(ctx context.Context, sched *models.Schedule) error

func (*RedisStorage) SaveWorkflow

func (r *RedisStorage) SaveWorkflow(ctx context.Context, namespace string, wf *models.Workflow) error

func (*RedisStorage) SetEncryption

func (r *RedisStorage) SetEncryption(crypto *storage.Crypto)

func (*RedisStorage) TryClaimScheduleRun

func (r *RedisStorage) TryClaimScheduleRun(ctx context.Context, namespace, id string, fireAt time.Time) (bool, error)

func (*RedisStorage) UpdateExecution

func (r *RedisStorage) UpdateExecution(ctx context.Context, namespace string, exec *models.Execution) error

func (*RedisStorage) UpdateExecutionIf

func (r *RedisStorage) UpdateExecutionIf(ctx context.Context, namespace string, exec *models.Execution, from models.TaskStatus) (bool, error)

UpdateExecutionIf implements storage.ConditionalUpdater.

func (*RedisStorage) UpdateExecutionStep

func (r *RedisStorage) UpdateExecutionStep(ctx context.Context, namespace string, step *models.ExecutionStep) error

func (*RedisStorage) UpdateExecutionStepIf

func (r *RedisStorage) UpdateExecutionStepIf(ctx context.Context, namespace string, step *models.ExecutionStep, from models.TaskStatus, worker string) (bool, error)

UpdateExecutionStepIf implements storage.ConditionalUpdater.

Jump to

Keyboard shortcuts

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