service

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 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

func GetSchedulesWithCron() ([]any, error)

func LoadSchedules

func LoadSchedules() error

加载所有的调度任务

func NewScheduleLogService

func NewScheduleLogService() *scheduleLogService

func NewScheduleService

func NewScheduleService() *scheduleService

func NewTaskLogService

func NewTaskLogService() *taskLogService

func RunTask

func RunTask(id int64) error

Types

type ScheduleVO

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