Documentation ¶
Index ¶
- type Ring
- func (r *Ring) Back() (interface{}, error)
- func (r *Ring) CurSize() int
- func (r *Ring) Do(f func(interface{}))
- func (r *Ring) Front() (interface{}, error)
- func (r *Ring) MaxSize() int
- func (r *Ring) PopBack() (interface{}, error)
- func (r *Ring) PopFront() (interface{}, error)
- func (r *Ring) PushBack(value interface{}) error
- func (r *Ring) PushFront(value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct { Value []interface{} // contains filtered or unexported fields }
Ring ring buffer use an array.
func (*Ring) Do ¶
func (r *Ring) Do(f func(interface{}))
Do calls function f on each element of the ring r, in forward order.
Click to show internal directories.
Click to hide internal directories.