storage

package
v0.0.0-...-12cef5b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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 ExecutionDAO

type ExecutionDAO interface {
	// Upsert 记录任务执行状态和进度
	Upsert(ctx context.Context, id int64, status task.ExecStatus, progress uint8) (int64, error)
	GetLastExecution(ctx context.Context, tid int64) (task.Execution, error)
	Create(ctx context.Context, tid int64) (int64, error)
	Update(ctx context.Context, eid int64, status task.ExecStatus, progress int) error
}

ExecutionDAO 任务执行情况

type TaskCfgRepository

type TaskCfgRepository interface {
	// Add 添加任务
	Add(ctx context.Context, t task.Task) error
	// Stop 停止任务
	Stop(ctx context.Context, id int64) error
	// UpdateNextTime 更新下次执行时间
	UpdateNextTime(ctx context.Context, id int64, next time.Time) error
}

Directories

Path Synopsis
Package daomocks is a generated GoMock package.
Package daomocks is a generated GoMock package.
mocks
Package daomysqlmocks is a generated GoMock package.
Package daomysqlmocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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