cron

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronExpression

type CronExpression string
const (
	Every5Sec      CronExpression = "*/5 * * * * *"
	Every10Sec     CronExpression = "*/10 * * * * *"
	Every15Sec     CronExpression = "*/15 * * * * *"
	Every30Sec     CronExpression = "*/30 * * * * *"
	Every1Min      CronExpression = "*/1 * * * *"
	Every5Min      CronExpression = "*/5 * * * *"
	Every30Min     CronExpression = "*/30 * * * *"
	Every1Hour     CronExpression = "0 */1 * * *"
	Every12Hour    CronExpression = "0 */12 * * *"
	Every24Hour    CronExpression = "0 0 */24 * *"
	EveryNight12AM CronExpression = "0 0 * * *"
)

func (CronExpression) String

func (c CronExpression) String() string

type CronTab

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

func NewCronTab

func NewCronTab() *CronTab

func (*CronTab) AddTicker

func (cj *CronTab) AddTicker(tickerName string, cronExp CronExpression) (*CronTicker, error)

Add job to scheduler

func (*CronTab) Stop

func (cj *CronTab) Stop()

shutdown cron

type CronTicker

type CronTicker struct {
	C <-chan time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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