activity_queue_item

package
v0.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: PostgreSQL Imports: 5 Imported by: 0

Documentation

Index

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
}

Store is a storage implementation for activity queue items. StartCache must be called before the store can be used.

func NewStore

func NewStore(client *clientv3.Client, root string) *Store

func (*Store) AllQueuesPrefix

func (s *Store) AllQueuesPrefix() string

func (*Store) Create

func (s *Store) Create(item *Value) storage.PutOp[*Value]

func (*Store) DeleteByKey

func (s *Store) DeleteByKey(queue, instanceID, eventID string) storage.DeleteOp

func (*Store) DeleteItem

func (s *Store) DeleteItem(item *Value) storage.DeleteValueOp[*Value]

func (*Store) GetAll

func (s *Store) GetAll() storage.GetMultipleOp[*Value]

func (*Store) GetByKey

func (s *Store) GetByKey(queue, instanceID, eventID string) storage.GetOp[*Value]

func (*Store) GetByQueue

func (s *Store) GetByQueue(queue string) storage.GetMultipleOp[*Value]

func (*Store) Key

func (s *Store) Key(queue, instanceID, eventID string) string

func (*Store) PropagateErrors added in v0.8.0

func (s *Store) PropagateErrors(ctx context.Context, ch chan error)

func (*Store) QueuePrefix

func (s *Store) QueuePrefix(queue string) string

func (*Store) StartCache added in v0.8.0

func (s *Store) StartCache(ctx context.Context) error

func (*Store) StopCache added in v0.8.0

func (s *Store) StopCache()

func (*Store) Update

func (s *Store) Update(item *Value) storage.PutOp[*Value]

type Value

type Value struct {
	storage.StoredValue
	WorkflowInstanceID  string         `json:"workflow_instance_id"`
	WorkflowExecutionID string         `json:"workflow_execution_id"`
	Queue               string         `json:"queue"`
	Event               *history.Event `json:"event"`
	LastLocked          *time.Time     `json:"last_locked"`
}

func (*Value) UpdateLastLocked

func (v *Value) UpdateLastLocked()

Jump to

Keyboard shortcuts

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