package
Version:
v1.0.6
Opens a new window with list of versions in this module.
Published: Apr 5, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
type Queue struct {
Events []*Event
}
Queue is a basic FIFO queue based on a circular list that resizes as needed.
func NewQueue(n []*Event) Queue
func (q *Queue) GetNode() []*Event
func (q *Queue) Pop() *Event
Pop removes and returns a node from the queue in first to last order.
func (q *Queue) Push(n *Event)
Push adds a node to the queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.