memrecordstore

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.1.2

type Option func(o *options)

func WithClock added in v0.1.2

func WithClock(clock clock.Clock) Option

type Store

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

func New

func New(opts ...Option) *Store

func (*Store) DeleteOutboxEvent added in v0.1.2

func (s *Store) DeleteOutboxEvent(ctx context.Context, id string) error

func (*Store) Latest

func (s *Store) Latest(ctx context.Context, workflowName, foreignID string) (*workflow.Record, error)

func (*Store) List added in v0.1.2

func (s *Store) List(
	ctx context.Context,
	workflowName string,
	offset int64,
	limit int,
	order workflow.OrderType,
	filters ...workflow.RecordFilter,
) ([]workflow.Record, error)

func (*Store) ListOutboxEvents added in v0.1.2

func (s *Store) ListOutboxEvents(
	ctx context.Context,
	workflowName string,
	limit int64,
) ([]workflow.OutboxEvent, error)

func (*Store) Lookup

func (s *Store) Lookup(ctx context.Context, id string) (*workflow.Record, error)

func (*Store) SetSnapshotOffset

func (s *Store) SetSnapshotOffset(workflowName, foreignID, runID string, offset int)

func (*Store) SnapshotOffset

func (s *Store) SnapshotOffset(workflowName, foreignID, runID string) int

func (*Store) Snapshots

func (s *Store) Snapshots(workflowName, foreignID, runID string) []*workflow.Record

func (*Store) Store

func (s *Store) Store(ctx context.Context, record *workflow.Record) error

Jump to

Keyboard shortcuts

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