memory

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package memory keeps people's acts in the process, for tests and for a single process that analyses what it just recorded. It keeps nothing across a restart; a deployment keeps its trace in jsonl or postgres.

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 records acts and reads them back.

func New

func New() *Store

New returns an empty store.

func (*Store) Read

func (s *Store) Read(_ context.Context, q activity.Query) ([]activity.Event, error)

Read returns the acts q asks for, in the order they happened.

func (*Store) Record

func (s *Store) Record(e activity.Event)

Record keeps one act.

Jump to

Keyboard shortcuts

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