services

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 23 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 IsTrading added in v0.6.8

func IsTrading(status int) bool

IsTrading 状态是否交易中

func PrintJobList added in v0.5.6

func PrintJobList()

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