xxljob

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogMiddleware

func LogMiddleware(tf xxl.TaskFunc) xxl.TaskFunc

func RecoverMiddleware

func RecoverMiddleware(tf xxl.TaskFunc) xxl.TaskFunc

Types

type Cron

type Cron struct {
	xxl.Executor
}

func New

func New(_opts ...Option) (*Cron, error)

type Logger

type Logger struct{}

func (Logger) Error

func (l Logger) Error(format string, args ...interface{})

func (Logger) Info

func (l Logger) Info(format string, args ...interface{})

type Option

type Option func(*options)

func OptionAccessToken

func OptionAccessToken(token string) Option

OptionAccessToken 请求令牌

func OptionExecutorIP

func OptionExecutorIP(ip string) Option

OptionExecutorIP 设置执行器IP

func OptionExecutorPort

func OptionExecutorPort(port int) Option

OptionExecutorPort 设置执行器端口

func OptionRegistryKey

func OptionRegistryKey(registryKey string) Option

OptionRegistryKey 设置执行器标识

func OptionServerAddr

func OptionServerAddr(addr string) Option

Jump to

Keyboard shortcuts

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