Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config) fh.HandlerFunc
Types ¶
type Config ¶
type Config struct {
Queue QueueStatsProvider
MaxPending int
MaxProcessing int
RetryAfter time.Duration
Reject RejectHandler
}
type QueueStatsProvider ¶
type QueueStatsProvider interface{ Stats() (fh.QueueStats, error) }
type RejectHandler ¶
type RejectHandler func(fh.Ctx, fh.QueueStats) error
Click to show internal directories.
Click to hide internal directories.