services

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 16 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 Job

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

Job 定时任务

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

Jump to

Keyboard shortcuts

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