hasaki-service-ticker-task

command module
v0.0.0-...-89dd690 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

README

hasaki-service-ticker-task

设置定时任务

AddTask: 注册处理定时任务的函数 - taskType: 定时任务类型 - f func(*TickerTaskItem) error: 处理函数

AddTaskItem: 添加一个定时任务 - taskType: 定时任务类型(与注册的处理函数的任务类型一致) - data: 处理返回的数据 - expiredAt: 过期时间(未来的某个时间点)

LaunchTask: 启动函数

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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