Documentation ¶ Index ¶ Variables type Builder func New(runner Runner, count uint) *Builder func (b *Builder) Interval(interval time.Duration) *Do func (b *Builder) Minute() *Do func (b *Builder) Seconds() *Do func (b *Builder) Time(time string) *Do type Do func (d *Do) Do(ctx context.Context, name string, handler func()) error type Runner Constants ¶ This section is empty. Variables ¶ View Source var ( ErrEmptyTaskName = errors.New("task name is nil") ErrTaskIntervalIsZero = errors.New("task interval is zero") ErrInvalidTimeFormat = errors.New("invalid time format") ) Functions ¶ This section is empty. Types ¶ type Builder ¶ type Builder struct { // contains filtered or unexported fields } func New ¶ func New(runner Runner, count uint) *Builder func (*Builder) Interval ¶ func (b *Builder) Interval(interval time.Duration) *Do func (*Builder) Minute ¶ func (b *Builder) Minute() *Do func (*Builder) Seconds ¶ func (b *Builder) Seconds() *Do func (*Builder) Time ¶ func (b *Builder) Time(time string) *Do type Do ¶ type Do struct { // contains filtered or unexported fields } func (*Do) Do ¶ func (d *Do) Do(ctx context.Context, name string, handler func()) error type Runner ¶ type Runner interface { Run(ctx context.Context, task models.Task) error } Source Files ¶ View all Source files builder.go Directories ¶ Show internal Expand all Path Synopsis mock Package mock_builder is a generated GoMock package. Package mock_builder is a generated GoMock package. Click to show internal directories. Click to hide internal directories.