Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func NewJobWithReport ¶ added in v0.2.1
func NewJobWithReport(logger log.Logger, report ReportError, works ...*Worker) *Job
type ReportError ¶
type WorkerOption ¶
type WorkerOption func(worker *Worker)
func WithLimiter ¶
func WithLimiter(limiter *rate.Limiter) WorkerOption
func WithLimiterDuration ¶ added in v0.2.1
func WithLimiterDuration(duration time.Duration) WorkerOption
func WithReport ¶
func WithReport(report ReportError) WorkerOption
func WithSleep ¶
func WithSleep(duration time.Duration) WorkerOption
Click to show internal directories.
Click to hide internal directories.