Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayTaskSchedule ¶
type DelayTaskSchedule struct {
// contains filtered or unexported fields
}
func NewDelayTaskSchedule ¶
func NewDelayTaskSchedule(ctx context.Context, handler func(key string, data interface{}), options ...Option) *DelayTaskSchedule
func NewSchedule ¶
func NewSchedule(ctx context.Context, options ...Option) *DelayTaskSchedule
func (*DelayTaskSchedule) Create ¶
func (d *DelayTaskSchedule) Create(task *Task) error
func (*DelayTaskSchedule) Delete ¶
func (d *DelayTaskSchedule) Delete(key string)
func (*DelayTaskSchedule) Start ¶
func (d *DelayTaskSchedule) Start()
type TimeWheel ¶
type TimeWheel struct {
// contains filtered or unexported fields
}
func NewTimeWheel ¶
func (*TimeWheel) CreateTask ¶
func (*TimeWheel) DeleteTask ¶
Click to show internal directories.
Click to hide internal directories.