pending_execution

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExecutionNotFound = errors.New("execution not found")
)

Functions

This section is empty.

Types

type DdbTracker

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

func (*DdbTracker) AddExecution

func (t *DdbTracker) AddExecution(ctx context.Context, id string, user tempest.Snowflake) error

func (*DdbTracker) GetExecution

func (t *DdbTracker) GetExecution(ctx context.Context, id string) (tempest.Snowflake, error)

func (*DdbTracker) RemoveExecution

func (t *DdbTracker) RemoveExecution(ctx context.Context, id string) error

type InMemoryTracker

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

func (*InMemoryTracker) AddExecution

func (t *InMemoryTracker) AddExecution(ctx context.Context, id string, user tempest.Snowflake) error

func (*InMemoryTracker) GetExecution

func (t *InMemoryTracker) GetExecution(ctx context.Context, id string) (tempest.Snowflake, error)

func (*InMemoryTracker) RemoveExecution

func (t *InMemoryTracker) RemoveExecution(ctx context.Context, id string) error

type Tracker

type Tracker interface {
	AddExecution(ctx context.Context, id string, user tempest.Snowflake) error
	RemoveExecution(ctx context.Context, id string) error
	GetExecution(ctx context.Context, id string) (tempest.Snowflake, error)
}

func NewDdbTracker

func NewDdbTracker(table string, client *dynamodb.Client) Tracker

func NewInMemoryTracker

func NewInMemoryTracker() Tracker

Jump to

Keyboard shortcuts

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