Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJobBuilder ¶
type CronJobBuilder struct {
// contains filtered or unexported fields
}
func NewCronJobBuilder ¶
func NewCronJobBuilder(l logger.LoggerV1) *CronJobBuilder
func (*CronJobBuilder) Build ¶
func (b *CronJobBuilder) Build(job Job) cron.Job
type LocalFuncExecutor ¶
type LocalFuncExecutor struct {
// contains filtered or unexported fields
}
func NewLocalFuncExecutor ¶
func NewLocalFuncExecutor() *LocalFuncExecutor
func (*LocalFuncExecutor) Name ¶
func (l *LocalFuncExecutor) Name() string
func (*LocalFuncExecutor) RegisterFunc ¶
type RankingJob ¶
type RankingJob struct {
// contains filtered or unexported fields
}
func NewRankingJob ¶
func NewRankingJob(svc service.RankingService, client *rlock.Client, l logger.LoggerV1, timeout time.Duration) *RankingJob
func (*RankingJob) Close ¶
func (r *RankingJob) Close() error
func (*RankingJob) Name ¶
func (r *RankingJob) Name() string
type RankingJobAdapter ¶
type RankingJobAdapter struct {
// contains filtered or unexported fields
}
func NewRankingJobAdapter ¶
func NewRankingJobAdapter(j Job, l logger.LoggerV1) *RankingJobAdapter
func (*RankingJobAdapter) Run ¶
func (r *RankingJobAdapter) Run()
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler 调度器
func NewScheduler ¶
func NewScheduler(svc service.JobService, l logger.LoggerV1) *Scheduler
func (*Scheduler) RegisterExecutor ¶
Click to show internal directories.
Click to hide internal directories.