simplecron

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 1 Imported by: 0

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) 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