Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("buffer closed")
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶
type RingBuffer struct {
// contains filtered or unexported fields
}
func NewRingBuffer ¶
func NewRingBuffer(size int) *RingBuffer
func (*RingBuffer) Close ¶
func (b *RingBuffer) Close() error
func (*RingBuffer) Reset ¶
func (b *RingBuffer) Reset()
func (*RingBuffer) Trims ¶ added in v3.7.1
func (b *RingBuffer) Trims() int64
Click to show internal directories.
Click to hide internal directories.