Documentation
¶
Index ¶
Constants ¶
View Source
const ( PriorityLow = 0 PriorityNormal = 1 PriorityHigh = 2 )
Variables ¶
View Source
var ( ErrClosed = Error("queue closed") ErrFull = Error("queue is full") ErrEmpty = Error("queue is empty") ErrCleared = Error("queue was cleared") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
type Interface ¶
type Interface interface {
Enqueue(ctx context.Context, content string, priority Priority) (<-chan *Result, error)
EnqueueBatch(ctx context.Context, items []string, priority Priority) ([]<-chan *Result, error)
OutputChan() <-chan *Item
Complete(item *Item, result *Result)
Size() int
Pending() int
GetStats() Stats
Clear()
Close()
}
Click to show internal directories.
Click to hide internal directories.