Documentation ¶
Index ¶
Constants ¶
View Source
const ( RetryKey = "retry" ScheduledJobsKey = "schedule" )
View Source
const (
NoMessage = StorageError("no message")
)
list of known errors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageError ¶
type StorageError string
StorageError is used to return errors from the storage layer
func (StorageError) Error ¶
func (e StorageError) Error() string
type Store ¶
type Store interface { // General queue operations CreateQueue(ctx context.Context, queue string) error ListMessages(ctx context.Context, queue string) ([]string, error) AcknowledgeMessage(ctx context.Context, queue string, message string) error EnqueueMessage(ctx context.Context, queue string, priority float64, message string) error EnqueueMessageNow(ctx context.Context, queue string, message string) error DequeueMessage(ctx context.Context, queue string, inprogressQueue string, timeout time.Duration) (string, error) // Special purpose queue operations EnqueueScheduledMessage(ctx context.Context, priority float64, message string) error DequeueScheduledMessage(ctx context.Context, priority float64) (string, error) EnqueueRetriedMessage(ctx context.Context, priority float64, message string) error DequeueRetriedMessage(ctx context.Context, priority float64) (string, error) // Stats IncrementStats(ctx context.Context, metric string) error GetAllStats(ctx context.Context, queues []string) (*Stats, error) // Retries GetAllRetries(ctx context.Context) (*Retries, error) }
Store is the interface for storing and retrieving data
Click to show internal directories.
Click to hide internal directories.