Documentation
¶
Index ¶
Constants ¶
View Source
const NumPriorities = 3
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoltDbConfig ¶
type BoltDbConfig struct {
FileName string `mapstructure:"filename"`
}
type BoltDbMQ ¶
type BoltDbMQ struct {
// contains filtered or unexported fields
}
type IronMQConfig ¶
type MemoryMQ ¶
type MemoryMQ struct {
// WorkQueue A buffered channel that we can send work requests on.
PriorityQueues []chan *models.Task
Ticker *time.Ticker
BTree *btree.BTree
Timeouts map[string]*TaskItem
// 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
}
func NewMemoryMQ ¶
func NewMemoryMQ() *MemoryMQ
type Mock ¶
Click to show internal directories.
Click to hide internal directories.