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 represents synchronized ring implementation
func (*RingBuffer) Do ¶
func (buf *RingBuffer) Do(f func(interface{}))
Do executes provided callback on all non-nil items of a ring
func (*RingBuffer) Last ¶
func (buf *RingBuffer) Last() interface{}
Last returned last item added to the ring
Click to show internal directories.
Click to hide internal directories.