dynamo_execution_repository

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeIdentifier = "identifier"
	AttributeWorkflow   = "workflow"
	AttributeStatus     = "status"
	AttributeCreatedAt  = "created_at"
	AttributeUpdatedAt  = "updated_at"
	AttributeFinishedAt = "finished_at"
	AttributeResults    = "results"
	AttributeTtl        = "ttl"
)
View Source
const (
	TtlPeriod = 24 * time.Hour
)

Variables

This section is empty.

Functions

func New

func New(table string, client *dynamodb.Client) repository.Execution

Types

type DynamoExecutionRepository

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

func (*DynamoExecutionRepository) Close added in v0.0.9

func (r *DynamoExecutionRepository) Close()

func (*DynamoExecutionRepository) CloseExecution

func (*DynamoExecutionRepository) CreateExecution

func (d *DynamoExecutionRepository) CreateExecution(ctx context.Context, ex *workflow.Execution) error

func (*DynamoExecutionRepository) GetExecution

func (*DynamoExecutionRepository) Init

type ExecutionDdbRecord

type ExecutionDdbRecord struct {
	Identifier string     `dynamodbav:"identifier"`
	Workflow   string     `dynamodbav:"workflow"`
	Status     string     `dynamodbav:"status"`
	CreatedAt  time.Time  `dynamodbav:"created_at"`
	UpdatedAt  time.Time  `dynamodbav:"updated_at"`
	FinishedAt *time.Time `dynamodbav:"finished_at,omitempty"`
	Results    *string    `dynamodbav:"results,omitempty"`
}

func (*ExecutionDdbRecord) ToExecution

func (n *ExecutionDdbRecord) ToExecution() *workflow.Execution

Jump to

Keyboard shortcuts

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