service

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobDb *gorm.DB

Functions

func GetSchedulesWithCron added in v1.7.9

func GetSchedulesWithCron() ([]any, error)

func LoadSchedules added in v1.7.9

func LoadSchedules() error

加载所有的调度任务

func NewScheduleLogService added in v1.7.5

func NewScheduleLogService() *scheduleLogService

func NewScheduleService

func NewScheduleService() *scheduleService

func NewTaskLogService added in v1.8.6

func NewTaskLogService() *taskLogService

func RunTask added in v1.7.9

func RunTask(id int64) error

Types

type ScheduleVO added in v1.7.9

type ScheduleVO struct {
	Id        int    `json:"id"`
	LastRunAt string `json:"lastRunAt"`
	NextRun   string `json:"nextRun"`
	FuncName  string `json:"funcName"`
}

Jump to

Keyboard shortcuts

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