cron

package
v0.0.0-...-17041c3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct {
	Minute     *CronValue
	Hour       *CronValue
	DayOfMonth *CronValue
	Month      *CronValue
	DayOfWeek  *CronValue
	Command    string
}

func New

func New(args []string) (*Cron, error)

func NewFromOsArgs

func NewFromOsArgs() (*Cron, error)

func (Cron) String

func (c Cron) String() string

type CronValue

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

CronValue provides minimal entity from cron object it handles minute, hour, day, month day of month.

func NewCronValue

func NewCronValue(name, value string, min, max int64) (*CronValue, error)

func (CronValue) String

func (c CronValue) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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