Help us shape the future of Go! Take the 2026 Go Developer Survey

timertask

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package timertask 是 data 门面子包:分片定时任务——本地后端 + 选项集。

re-export 自 github.com/oekit/timertask:类型为泛型 type alias(与源包**完全同一类型**, 双向赋值互通);非泛型函数/变量经 var 引用同一函数值。源包新增导出符号时 本壳需同步(门面跟版税,data 门面化决策已接受)。

Redis 后端自 timertask v0.2.0 起迁至嵌套模块 github.com/oekit/timertask/redis (根包不再引 go-redis,纯 stdlib 嵌入式场景可用)——本壳因此不再转发 RedisBackend/ShardManager/NewRedisBackend/NewShardManager;需要 Redis 形态请直接 依赖 github.com/oekit/timertask/redis。

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyTaskID = src.ErrEmptyTaskID

ErrEmptyTaskID 提交的任务没有 ID(任务 ID 必须唯一)。

View Source
var NewLocalBackend = src.NewLocalBackend
View Source
var ResolveOptions = src.ResolveOptions
View Source
var WithAtLeastOnce = src.WithAtLeastOnce
View Source
var WithBuckets = src.WithBuckets
View Source
var WithDeliveryMode = src.WithDeliveryMode
View Source
var WithOnFailure = src.WithOnFailure
View Source
var WithRetry = src.WithRetry
View Source
var WithVisibilityTimeout = src.WithVisibilityTimeout
View Source
var WithWorkers = src.WithWorkers

Functions

This section is empty.

Types

type BackendConfig added in v0.15.0

type BackendConfig = src.BackendConfig

type DeliveryMode added in v0.9.0

type DeliveryMode = src.DeliveryMode

type Handler

type Handler = src.Handler

type LocalBackend

type LocalBackend = src.LocalBackend

type Task

type Task = src.Task

type TimerTask

type TimerTask = src.TimerTask

type TimerTaskOption

type TimerTaskOption = src.TimerTaskOption

Jump to

Keyboard shortcuts

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