Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleAwaken ¶
type ScheduleAwaken struct {
// contains filtered or unexported fields
}
func (ScheduleAwaken) Spec ¶
func (awaken ScheduleAwaken) Spec() schedule.Schedule
type ScheduleData ¶
type ScheduleStore ¶
type ScheduleStore interface { GetPageSchedule(ctx context.Context, fromTimeMs Timestamp, toTimeMs Timestamp) ([]ScheduleData, error) SaveSchedule(ctx context.Context, s schedule.Schedule) (ScheduleData, error) MarkMillionSeconds(ctx context.Context, timestamp Timestamp) error GetMarkMillionSeconds(ctx context.Context) (timestamp Timestamp, err error) }
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(timeWheel *timewheel.TimeWheel, store ScheduleStore, pageInterval int64) *Scheduler
func (*Scheduler) CloseWithContext ¶
func (*Scheduler) PostSchedule ¶
if schedule over max time wheel. Return ErrOverMaxDuration
Click to show internal directories.
Click to hide internal directories.