embano1 / memlog

A Kafka log inspired in-memory and append-only data structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Idea: `memlog.ReadBatch()` method

embano1 opened this issue · comments

Allow to read ranges if streaming or single reads are not fitting the use case.

Example:

# reads up to len(batch) into batch, returning number records read
memlog.ReadBatch(ctx context.Context, start Offset, batch []Record) (int, error)