domain

package
v0.0.0-...-ea419c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Id   int64
	Name string
	//执行的超时时间
	Timeout time.Duration
	//job的权重,被调度时,scheduler会增加weight的负载,完成后减少负载
	Weight int64
	//job的cron表达式
	Cron string
	//执行流水版本号,用于乐观锁控制
	Version int64
	//执行器名字
	Executor string
	// 不知道配置具体细节,所以就搞一个通用的配置抽象
	Config string
	Cancel context.CancelFunc
}

func (Job) NextTime

func (j Job) NextTime() time.Time

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL