package
0.0.0-20240912125727-0d8608059bcc
Repository: https://github.com/unixpickle/tasq.git
Documentation: pkg.go.dev
# Functions
DecodePendingQueue decodes an object from PendingQueue.Encode().
DecodeQueueState decodes an object from QueueState.Encode().
DecodeRateTracker loads an encoded RateTracker.
DecodeRunningQueue decodes an object from RunningQueue.Encode().
DecodeTaskDeque inverts TaskDeque.Encode(), converting a serializable object back into a linked list deque.
DeserializeQueueStateMux reads a file written by QueueStateMux.Serialize().
No description provided by the author
NewQueueState creates empty queues with the given task timeout.
NewQueueStateMux creates a QueueStateMux with the given task timeout.
NewRateTracker creates a RateTracker which keeps event counts up to historySize seconds in the past.
No description provided by the author
ReadQueueStateMux is like DeserializeQueueStateMux(), but reads from a local file instead of an arbitrary reader.
No description provided by the author
# Constants
Default history time used for RateTracker.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QueueState maintains two queues of tasks: a pending queue and a running queue.
QueueStateMux manages multiple (named) QueueStates.
A RateTracker keeps a sliding window of event counts over the last N seconds.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author