sprjob

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LoopIntervalSec = 15
View Source
const MasterKeepTime = 90

Variables

This section is empty.

Functions

This section is empty.

Types

type SprJob

type SprJob struct {
	JobName         string
	IsMaster        bool
	JobRand         string
	LoopIntervalSec int
	StopFlag        bool
	LastRuntime     int64
}

func New

func New(name string) *SprJob

func (*SprJob) StartLoop

func (s *SprJob) StartLoop(llog *localLog.LocalLog)

func (*SprJob) StopLoop

func (s *SprJob) StopLoop()

Jump to

Keyboard shortcuts

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