inmemory

package
v0.0.0-...-e8f8035 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New() *Storage

func (*Storage) GetEntityIDs

func (s *Storage) GetEntityIDs(ctx context.Context, entityType string, storeEntityID string, limit int64) ([]string, string, error)

func (*Storage) Read

func (s *Storage) Read(ctx context.Context, entityType string, entityID string, eventNumber int64) iter.Seq2[es.Event, error]

func (*Storage) Register

func (s *Storage) Register(entityType string, contentTypes ...es.Content) error

func (*Storage) StartPublish

func (s *Storage) StartPublish(ctx context.Context, writer es.Writer) error

func (*Storage) Write

func (s *Storage) Write(ctx context.Context, entityType string, events iter.Seq2[es.Event, error]) error

type Writer

type Writer interface {
	Write(ctx context.Context, entityType string, events iter.Seq2[es.Event, error]) error
}

Jump to

Keyboard shortcuts

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