Documentation
¶
Index ¶
- type Binary
- type Buffer
- func (b *Buffer) Add(entry codec.LogEntry, entryTime time.Time) bool
- func (b *Buffer) Flush() (Flush, error)
- func (b *Buffer) Query(actorID uint32, dayStart time.Time, from, to time.Time) iter.Seq[codec.LogEntry]
- func (b *Buffer) QueryActors(dayStart time.Time, from, to time.Time, actors []uint32) iter.Seq[codec.LogEntry]
- func (b *Buffer) Size() int
- type Flush
- type Index
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer represents the in-memory buffer for the current chunk.
func (*Buffer) Flush ¶
Flush atomically extracts the current buffer contents and resets the buffer. It returns a deep-copied snapshot so the caller owns the returned slices/maps without needing additional synchronization.
func (*Buffer) Query ¶
func (b *Buffer) Query(actorID uint32, dayStart time.Time, from, to time.Time) iter.Seq[codec.LogEntry]
Query returns entries for a specific actor within a time range.
Click to show internal directories.
Click to hide internal directories.