summaryrefslogtreecommitdiff
path: root/internal/tui/eventstream/ringbuffer.go
blob: 8644b4227bbf9e240b8c9d9ec2b8e63015fd1081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package eventstream

import "ior/internal/streamrow"

// RingBuffer is a type alias for streamrow.RingBuffer. The concrete
// implementation lives in the lower-level streamrow package so the core
// tracing engine can use it without importing internal/tui/eventstream.
type RingBuffer = streamrow.RingBuffer

// ringBufferCapacity mirrors the capacity constant for use in this package
// (e.g. stream table rendering).
const ringBufferCapacity = streamrow.RingBufferCapacity

// NewRingBuffer allocates an empty RingBuffer with the default capacity.
func NewRingBuffer() *RingBuffer {
	return streamrow.NewRingBuffer()
}