job

package
v0.0.0-...-80dae45 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Params = []CronJobParam{
	{
		Name:            common.UpstreamNameGroupRankInfo,
		Url:             common.UpstreamUrlGroupRankInfo,
		ReplaceRMStatic: false,
	},
	{
		Name:            common.UpstreamNameRobotData,
		Url:             common.UpstreamUrlRobotData,
		ReplaceRMStatic: false,
	},
	{
		Name:            common.UpstreamNameSchedule,
		Url:             common.UpstreamUrlSchedule,
		ReplaceRMStatic: true,
	},
}

Functions

func CronJobFactory

func CronJobFactory(param CronJobParam) func()

func InitCronJob

func InitCronJob() *cron.Cron

Types

type CronJobParam

type CronJobParam struct {
	Name            string
	Url             string
	ReplaceRMStatic bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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