Documentation
¶
Index ¶
Constants ¶
View Source
const NumPriorities = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryMQ ¶
type MemoryMQ struct {
// WorkQueue A buffered channel that we can send work requests on.
PriorityQueues []chan *models.Call
Ticker *time.Ticker
BTree *btree.BTree
Timeouts map[string]*callItem
// Protects B-tree and Timeouts
// If this becomes a bottleneck, consider separating the two mutexes. The
// goroutine to clear up timed out messages could also become a bottleneck at
// some point. May need to switch to bucketing of some sort.
Mutex sync.Mutex
}
Click to show internal directories.
Click to hide internal directories.