simplecron

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 1 Imported by: 2

README

simple-cron

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronCallback

type CronCallback func()

CronCallback - cron callback /ᐠ。‸。ᐟ\

type CronObject

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

CronObject - cron object /ᐠ。‸。ᐟ\

func NewCronHandler

func NewCronHandler(callback CronCallback, timerTime time.Duration) *CronObject

NewCronHandler - create new cron

func (*CronObject) Pause

func (c *CronObject) Pause()

Pause cron event exec

func (*CronObject) Resume

func (c *CronObject) Resume()

Resume cron event exec

func (*CronObject) Run

func (c *CronObject) Run(immediately ...bool)

Run cron

func (*CronObject) Stop

func (c *CronObject) Stop()

Stop cron

Jump to

Keyboard shortcuts

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