Documentation
¶
Index ¶
- func Dequeue(items []*goqueuepriority.Wrapper) (interface{}, []*goqueuepriority.Wrapper, bool)
- func DequeueMultiple(n int, wrappers []*goqueuepriority.Wrapper) ([]interface{}, []*goqueuepriority.Wrapper, bool)
- func Enqueue(items []*goqueuepriority.Wrapper, item *goqueuepriority.Wrapper) ([]*goqueuepriority.Wrapper, bool)
- func RotateLeft(items []*goqueuepriority.Wrapper)
- func RotateRight(items []*goqueuepriority.Wrapper)
- func SendSignal(signal chan struct{}, timeout ...time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dequeue ¶
func Dequeue(items []*goqueuepriority.Wrapper) (interface{}, []*goqueuepriority.Wrapper, bool)
Dequeue can be used to remove an item from the queue and reduce its capacity by one
func DequeueMultiple ¶
func DequeueMultiple(n int, wrappers []*goqueuepriority.Wrapper) ([]interface{}, []*goqueuepriority.Wrapper, bool)
DequeueMultiple will return a number of items less than or equal to the value of n while maintaining the input data on the second slice of interface, it will return true if there are no items to dequeue
func Enqueue ¶
func Enqueue(items []*goqueuepriority.Wrapper, item *goqueuepriority.Wrapper) ([]*goqueuepriority.Wrapper, bool)
Enqueue can be used to add an item to the back of a queue while maintaining it's capacity (e.g. in-place) it will return true if the queue is full
func RotateLeft ¶
func RotateLeft(items []*goqueuepriority.Wrapper)
RotateLeft can be used to perform an in-place rotation left of a slice of empty interface
func RotateRight ¶
func RotateRight(items []*goqueuepriority.Wrapper)
RotateRight can be used to perform an in-place rotation right of a slice of empty interface
func SendSignal ¶
SendSignal will perform a non-blocking send with or without a timeout depending on whether ConfigSignalTimeout is greater than 0
Types ¶
This section is empty.