services

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyExists = errors.New("job is already exists")
)

Functions

func DaemonService

func DaemonService()

DaemonService 守护进程服务入口

func List

func List()

func Register

func Register(name, spec string, callback func()) error

Register 注册定时任务

Types

type Task added in v0.4.9

type Task struct {
	Service func()
	// contains filtered or unexported fields
}

Task 定时任务

默认每10秒检测1次
排名不分先后

Jump to

Keyboard shortcuts

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