memory

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements an in-memory execution storage. All operations are thread-safe and return **copies** of the underlying objects to prevent data races when callers mutate the returned instances.

func New

func New() *Service

New constructor.

func (*Service) Delete

func (s *Service) Delete(_ context.Context, id string) error

Delete removes an execution.

func (*Service) List

func (s *Service) List(_ context.Context, _ ...*dao.Parameter) ([]*execution.Execution, error)

List returns shallow copies of all executions. Parameter filtering is not implemented for the in-memory store.

func (*Service) Load

func (s *Service) Load(_ context.Context, id string) (*execution.Execution, error)

Load retrieves a copy of the execution or dao.ErrNotFound.

func (*Service) Save

Save persists (a clone of) the supplied execution.

Jump to

Keyboard shortcuts

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