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 ¶
View Source
var ErrInvalidSize = errors.New("circbuf: size must be a positive int")
ErrInvalidSize is returned when initializing a Buffer with a non-positive max size.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer represents a dynamic circular (ring) buffer of fixed maximum size.
Click to show internal directories.
Click to hide internal directories.