Documentation
¶
Index ¶
- Constants
- type Poller
- type QueueSpec
- type Queues
- func (q *Queues) Add(namespace string, name string, uri string, workers int32) error
- func (q *Queues) Delete(namespace string, name string) error
- func (q *Queues) GetQueueInfo(namespace string, name string) (string, int32, int32)
- func (q *Queues) List() map[string]*QueueSpec
- func (q *Queues) ListQueue(key string) *QueueSpec
- func (q *Queues) Sync(stopCh <-chan struct{})
- type QueuingService
- type SQS
Constants ¶
View Source
const ( QueueProviderSQS = "sqs" QueueProviderBeanstalk = "beanstalk" BenanstalkProtocol = "beanstalk" UnsyncedQueueMessageCount = -1 UnsyncedIdleWorkers = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller is the generic poller which manages polling of queues from the configured message queuing service provider
func NewPoller ¶
func NewPoller(queues *Queues, service QueuingService) Poller
type QueueSpec ¶
type QueueSpec struct {
// contains filtered or unexported fields
}
QueueSpec is the specification for a single queue
type Queues ¶
type Queues struct {
// contains filtered or unexported fields
}
Queues maintains a list of all queues as specified in WPAs in memory The list is kept in sync with the wpa objects
func (*Queues) GetQueueInfo ¶
type QueuingService ¶
type QueuingService interface { Sync(stopCh <-chan struct{}) // contains filtered or unexported methods }
QueuingService is the interface for the message queueing service For example: SQS and Beanstalk implements QueuingService interface
Click to show internal directories.
Click to hide internal directories.