Documentation
¶
Overview ¶
Package circbuf provides an in-memory circular buffer implementation to bound the size of captured log streams.
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 a dynamic circular (ring) buffer. It will append data freely to the underlying buffer until maxSize is hit. Once hit, new writes will be written in a circular fashion.
func (*Buffer) Bytes ¶
Bytes returns the contents of the buffer, with the oldest contents at the beginning.
func (*Buffer) TotalWritten ¶
TotalWritten returns the total number of bytes written to the buffer.
Click to show internal directories.
Click to hide internal directories.