Documentation ¶
Index ¶
- type MessageBuffer
- func (mb *MessageBuffer) AddCell(r *RingCell)
- func (mb *MessageBuffer) EraseCell(r *ring.Ring)
- func (mb *MessageBuffer) GetCell(compare func(a, b *RingCell) bool, dir func() *ring.Ring) (*RingCell, *ring.Ring, bool)
- func (mb *MessageBuffer) GetNewestCell() (*RingCell, *ring.Ring, bool)
- func (mb *MessageBuffer) GetOldestCell() (*RingCell, *ring.Ring, bool)
- type RingCell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageBuffer ¶
type MessageBuffer struct {
// contains filtered or unexported fields
}
func NewMessageBuffer ¶
func NewMessageBuffer(n int) *MessageBuffer
func (*MessageBuffer) AddCell ¶
func (mb *MessageBuffer) AddCell(r *RingCell)
func (*MessageBuffer) EraseCell ¶
func (mb *MessageBuffer) EraseCell(r *ring.Ring)
func (*MessageBuffer) GetNewestCell ¶
func (mb *MessageBuffer) GetNewestCell() (*RingCell, *ring.Ring, bool)
func (*MessageBuffer) GetOldestCell ¶
func (mb *MessageBuffer) GetOldestCell() (*RingCell, *ring.Ring, bool)
Click to show internal directories.
Click to hide internal directories.