scheduler

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeepHandler

func KeepHandler(name string, handler *Handler)

func StopKeptHandlers

func StopKeptHandlers()

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func GetHandler

func GetHandler() *Handler

func GetKeptHandler

func GetKeptHandler(name string) *Handler

func (*Handler) DeleteObject added in v1.0.12

func (s *Handler) DeleteObject(obj *Object)

func (*Handler) NewObject

func (s *Handler) NewObject(obj *Object)

func (*Handler) Run

func (s *Handler) Run(priority Priority)

func (*Handler) Stop

func (s *Handler) Stop()

type Object

type Object struct {
	// contains filtered or unexported fields
}

func CreateObjectByEveryDay

func CreateObjectByEveryDay(hour int, minute int, second int, completion func()) *Object

func CreateObjectByInterval

func CreateObjectByInterval(milliSecondInterval int64, completion func()) *Object

type Priority

type Priority int
const (
	PriorityVerySlow Priority = 2000
	PrioritySlow     Priority = 1000
	PriorityNormal   Priority = 500
	PriorityFast     Priority = 200
	PriorityVeryFast Priority = 30
	PriorityRealTime Priority = 1
)

Jump to

Keyboard shortcuts

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