memory

package
v0.0.0-...-073cc3e Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 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 InMemoryStoreManager

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

func NewInMemoryStoreManager

func NewInMemoryStoreManager() *InMemoryStoreManager

func (*InMemoryStoreManager) All

func (*InMemoryStoreManager) Create

func (m *InMemoryStoreManager) Create(id fluxcore.StoreId, metadata map[string]string) (fluxcore.SubStore, error)

func (*InMemoryStoreManager) Get

func (*InMemoryStoreManager) List

func (m *InMemoryStoreManager) List(metadata map[string]string) iter.Seq[fluxcore.SubStore]

func (*InMemoryStoreManager) OnCommit

func (*InMemoryStoreManager) Tx

func (m *InMemoryStoreManager) Tx() *transaction

type InMemorySubStore

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

func (*InMemorySubStore) All

func (s *InMemorySubStore) All(start core.Version) (iter.Seq[core.Event], error)

func (*InMemorySubStore) Append

func (s *InMemorySubStore) Append(event core.Event) error

func (*InMemorySubStore) Get

func (s *InMemorySubStore) Get(ctx context.Context, id string, aggregateType string, afterVersion core.Version) (core.Iterator, error)

func (*InMemorySubStore) Id

func (*InMemorySubStore) LastVersion

func (s *InMemorySubStore) LastVersion() core.Version

func (*InMemorySubStore) Metadata

func (s *InMemorySubStore) Metadata() map[string]string

func (*InMemorySubStore) Save

func (s *InMemorySubStore) Save(events []core.Event) error

func (*InMemorySubStore) UpdateMetadata

func (s *InMemorySubStore) UpdateMetadata(metadata map[string]string) error

Jump to

Keyboard shortcuts

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