Documentation ¶
Index ¶
- Constants
- type EventAppendData
- type EventRemoveData
- type Queue
- func (q *Queue) All() []*QueueEntry
- func (q *Queue) Append(item *QueueEntry)
- func (q *Queue) AppendAt(index int, item *QueueEntry)
- func (q *Queue) AppendMany(items ...*QueueEntry)
- func (q *Queue) Clear()
- func (q *Queue) First() *QueueEntry
- func (q *Queue) ItemAt(index int) *QueueEntry
- func (q *Queue) Remove(index int)
- func (q *Queue) Shuffle()
- func (q *Queue) Size() int
- type QueueEntry
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAppendData ¶
type EventAppendData struct { Items []*QueueEntry Queue *Queue Index int IsMany bool }
type EventRemoveData ¶
type EventRemoveData struct { Queue *Queue Index int Item *QueueEntry }
type Queue ¶
type Queue struct { *event.EventEmitter // contains filtered or unexported fields }
func (*Queue) All ¶
func (q *Queue) All() []*QueueEntry
func (*Queue) Append ¶
func (q *Queue) Append(item *QueueEntry)
func (*Queue) AppendAt ¶
func (q *Queue) AppendAt(index int, item *QueueEntry)
func (*Queue) AppendMany ¶
func (q *Queue) AppendMany(items ...*QueueEntry)
func (*Queue) First ¶
func (q *Queue) First() *QueueEntry
func (*Queue) ItemAt ¶
func (q *Queue) ItemAt(index int) *QueueEntry
type QueueEntry ¶
Click to show internal directories.
Click to hide internal directories.