shelltask

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

shell-task

Documentation

Overview

Package shelltask 提供了一个简单而灵活的任务调度系统

Index

Constants

This section is empty.

Variables

View Source
var (
	WithName            = scheduler.WithName
	WithJob             = scheduler.WithJob
	WithTimeout         = scheduler.WithTimeout
	WithRepeat          = scheduler.WithRepeat
	WithMaxRuns         = scheduler.WithMaxRuns
	WithRetry           = scheduler.WithRetry
	WithParallelism     = scheduler.WithParallelism
	WithLogger          = scheduler.WithLogger
	WithRecover         = scheduler.WithRecover
	WithStartupDelay    = scheduler.WithStartupDelay
	WithPreHook         = scheduler.WithPreHook
	WithPostHook        = scheduler.WithPostHook
	WithErrorHandler    = scheduler.WithErrorHandler
	WithCancelOnFailure = scheduler.WithCancelOnFailure
	WithMetricCollector = scheduler.WithMetricCollector
	WithSchedule        = scheduler.WithSchedule
	WithNaturalTime     = scheduler.WithNaturalTime
)

导出所有任务配置选项

Functions

This section is empty.

Types

type Job

type Job = scheduler.Job

Job 定义任务函数类型

type JobResult

type JobResult = scheduler.JobResult

JobResult 表示任务执行结果

type Task

type Task = scheduler.Task

Task 代表一个可配置的任务

func New

func New(opts ...TaskOption) *Task

New 创建新的任务实例

type TaskOption

type TaskOption = scheduler.TaskOption

TaskOption 配置任务的函数类型

Directories

Path Synopsis
examples
simple-example command
examples/simple_example.go
examples/simple_example.go
scheduler/options.go
scheduler/options.go

Jump to

Keyboard shortcuts

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