Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶
type RingBuffer struct {
// contains filtered or unexported fields
}
RingBuffer holds the ring buffer and the synchronization primitives
func (*RingBuffer) Empty ¶
func (r *RingBuffer) Empty() bool
func (*RingBuffer) Pop ¶
func (r *RingBuffer) Pop() (interface{}, error)
Pop removes value from ring buffer.
func (*RingBuffer) Push ¶
func (r *RingBuffer) Push(value interface{})
Push inserts new value to ring buffer. Overflow signals if ring buffer was full when Push was called.
Click to show internal directories.
Click to hide internal directories.