# Functions

NewBuffer returns an initialized ring buffer.
NewConsumer returns a Consumer, which can read from the passed Buffer.

# Structs

Buffer represents a circular array of data items.
Consumer represents an entity which can read items from a ring buffer.
Elem single data unit of a ring buffer.

# Interfaces

Writer defines a Writer interface compatible with ring.Elem.

# Type aliases

ElemArray a sortable array of Elem in descending order.