Documentation ¶
Index ¶
Constants ¶
View Source
const ( RetryKey = "goretry" ScheduledJobsKey = "schedule" )
TODO(wtlangford): Check if the value of these keys are Sidekiq-compatible
View Source
const NoMessage = StorageError("no message")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Retries ¶
type Retries struct { TotalRetryCount int64 RetryJobs []RetryJobStats }
type RetryJobStats ¶
type StorageError ¶
type StorageError string
func (StorageError) Error ¶
func (e StorageError) Error() string
type Store ¶
type Store interface { // General queue operations CreateQueue(queue string) error ListMessages(queue string) ([]string, error) AcknowledgeMessage(queue string, message string) error EnqueueMessage(queue string, priority float64, message string) error EnqueueMessageNow(queue string, message string) error DequeueMessage(queue string, inprogressQueue string, timeout time.Duration) (string, error) // Special purpose queue operations EnqueueScheduledMessage(priority float64, message string) error DequeueScheduledMessage(priority float64) (string, error) EnqueueRetriedMessage(priority float64, message string) error DequeueRetriedMessage(priority float64) (string, error) // Stats IncrementStats(metric string) error GetAllStats(queues []string) (*Stats, error) // Retries GetAllRetries() (*Retries, error) }
Click to show internal directories.
Click to hide internal directories.