xxl

package
v0.0.0-...-d2770bb Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jobs

type Jobs struct {
	XxlServer   string        `json:"xxlServer"` // XxlServer 指定一个xxl-job 的调度地址
	Token       string        `json:"token"`
	Port        string        `json:"port"` // Port RegistryKey ,同一个服务,则同一个端口和注册名 RegistryKey;
	RegistryKey string        `json:"registryKey"`
	MaxAge      time.Duration `json:"maxAge"` // gin router 请求最大时长
}

func (*Jobs) Init

func (job *Jobs) Init()

func (*Jobs) RegTask

func (job *Jobs) RegTask(pattern string, task xxl.TaskFunc)

func (*Jobs) Run

func (job *Jobs) Run() (err error)

func (*Jobs) Stop

func (job *Jobs) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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