cxcron

package module
v0.0.0-...-555c731 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 3 Imported by: 0

README

gocron

Golang Cron Job Module

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJob

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

CronJob runs the given function at the specified interval until stopped.

func NewCronJob

func NewCronJob(interval time.Duration, f func()) *CronJob

NewCronJob creates a new CronJob instance with the given interval and function.

func (*CronJob) Stop

func (job *CronJob) Stop()

Stop stops the cron job from running.

Jump to

Keyboard shortcuts

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