croneye

package module
v0.0.0-...-b823140 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2015 License: MIT Imports: 9 Imported by: 1

README

croneye

Check the job execution schedule from cron settings.

Example

Usage

$ croneye [-from <FromTime>] [-to <ToTime>]

Installation

$ go get github.com/mizoR/croneye/...

LICENSE

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Parser Parser
}

func NewApp

func NewApp(fromTime time.Time, toTime time.Time) *App

func (App) Run

func (a App) Run(file *os.File)

type Job

type Job struct {
	RunTime time.Time
	Script  string
}

func NewJob

func NewJob(runsAt time.Time, script string) *Job

type JobList

type JobList []Job

func (JobList) Len

func (l JobList) Len() int

func (JobList) Less

func (l JobList) Less(i, j int) bool

func (JobList) Swap

func (l JobList) Swap(i, j int)

type Parser

type Parser struct {
	FromTime time.Time
	ToTime   time.Time
}

func NewParser

func NewParser(fromTime time.Time, toTime time.Time) *Parser

func (Parser) Parse

func (p Parser) Parse(r io.Reader) JobList

func (Parser) ParseLine

func (p Parser) ParseLine(line string) JobList

Directories

Path Synopsis
cmd
croneye command

Jump to

Keyboard shortcuts

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