Documentation
¶
Index ¶
- Variables
- type Ring
- func (r *Ring) Cap() int
- func (r *Ring) Empty() bool
- func (r *Ring) Full() bool
- func (r *Ring) Get() interface{}
- func (r *Ring) GetAll() []interface{}
- func (r *Ring) Gets(n int) []interface{}
- func (r *Ring) Len() int
- func (r *Ring) MPop(n int) ([]interface{}, error)
- func (r *Ring) MPush(items []interface{}) error
- func (r *Ring) Pop() (interface{}, error)
- func (r *Ring) Push(item interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRingLenNotEnough = errors.New("ring has not enough items for pop n") ErrRingCapNotEnough = errors.New("ring has not enough space for push n") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.