cron

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: GPL-2.0, GPL-3.0 Imports: 3 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 {
	event.Base

	Cron *cron.Cron `json:"-"`
	Time Time       `io:"input"`
	// contains filtered or unexported fields
}

Cron is an event which triggers on specefic time intervals

func (Cron) Color

func (Cron) Color() uint

func (*Cron) Describe

func (c *Cron) Describe() string

Describe returns a readable description of the cron job

func (Cron) Icon

func (Cron) Icon() string

func (*Cron) Listen

func (c *Cron) Listen(stop <-chan struct{}) error

Listen starts the cronjob

type Time

type Time string

Time is a string which describes intervals using the cron spec

Jump to

Keyboard shortcuts

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