periodTask

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TaskShare = TaskType(1)
	TaskAlone = TaskType(2)
	TaskOnce  = TaskType(3)
)

Variables

This section is empty.

Functions

func InsertTask

func InsertTask(task IPeriodTask)

func Scheduler

func Scheduler()

Types

type IPeriodTask

type IPeriodTask interface {
	TaskType() TaskType
	SchedulePeriod() int64
	Execute()
}

type TaskType

type TaskType int

Jump to

Keyboard shortcuts

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