storage

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Home string
}

func New

func New(home string) *Store

func (*Store) Append

func (s *Store) Append(event model.NormalizedEvent, receivedAt time.Time) (model.Envelope, error)

func (*Store) AppendMessage added in v0.0.18

func (s *Store) AppendMessage(runner, sessionID string, msg model.Message) error

func (*Store) ClearMessages added in v0.0.18

func (s *Store) ClearMessages(runner, sessionID string) error

func (*Store) Fetch

func (s *Store) Fetch(consumerID string, limit int, peek bool) (model.FetchResponse, error)

func (*Store) GetAndClearMessages added in v0.0.18

func (s *Store) GetAndClearMessages(runner, sessionID string) ([]model.Message, error)

func (*Store) GetMessages added in v0.0.18

func (s *Store) GetMessages(runner, sessionID string) ([]model.Message, error)

func (*Store) GetSession added in v0.0.18

func (s *Store) GetSession(runner, sessionID string) (*model.SessionData, error)

func (*Store) LoadCursor

func (s *Store) LoadCursor(consumerID string) (model.Cursor, error)

func (*Store) Partitions

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

func (*Store) ReadBatch

func (s *Store) ReadBatch(cursor model.Cursor, limit int) ([]model.Envelope, model.Cursor, bool, error)

func (*Store) RebuildIndexes

func (s *Store) RebuildIndexes() error

func (*Store) RebuildSessions

func (s *Store) RebuildSessions() error

func (*Store) SaveCursor

func (s *Store) SaveCursor(consumerID string, cursor model.Cursor) error

func (*Store) WriteSession added in v0.0.18

func (s *Store) WriteSession(runner, sessionID string, data model.SessionData) error

Jump to

Keyboard shortcuts

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