memory

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package memory is an in-memory store.Store: enough to run the full engine in tests and the zero-setup CLI demo. Concurrency-safe. The tiered segment store (columnar, object-store-backed) satisfies the same interface for scale.

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
}

func New

func New() *Store

func (*Store) Clear

func (s *Store) Clear() error

func (*Store) DeleteUser added in v0.3.0

func (s *Store) DeleteUser(distinctID string) (int, error)

DeleteUser erases every event for one distinct_id (GDPR erasure).

func (*Store) Ingest

func (s *Store) Ingest(events ...event.Event) error

func (*Store) Names

func (s *Store) Names() ([]string, error)

func (*Store) Prune

func (s *Store) Prune(before time.Time) (int, error)

func (*Store) Range

func (s *Store) Range(from, to time.Time) ([]event.Event, error)

func (*Store) Scan added in v0.2.0

func (s *Store) Scan(from, to time.Time, fn func(event.Event) error) error

Jump to

Keyboard shortcuts

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