xxljob

package
v2.1.41 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteFail

func ExecuteFail(msg string) *xxl.ExecuteResult

ExecuteFail 执行失败返回

func ExecuteSuccess

func ExecuteSuccess(msg string) *xxl.ExecuteResult

ExecuteSuccess 执行成功返回

func NewExecutor

func NewExecutor(op *Option) (xxl.Executor, error)

func WithGinRoute

func WithGinRoute(e *gin.Engine, exec xxl.Executor)

Types

type Option

type Option struct {
	AppName     string       // xxl-job executor's app name
	Port        string       // the port of xxl-job executor, default is 9999
	AccessToken string       // access token of xxl-job executor
	ServerAddr  string       // the address of xxl-job admin, if empty, will use env XXL_JOB_SERVER_ADDR
	LogLevel    xxl.LogLevel // 日志级别
	LogDepth    int          // 日志深度
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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