Documentation ¶
Overview ¶
Package cronenberg provides interfaces and types for running external processes repeatedly at specific times.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cron ¶
Cron is an interface that manages a collection of Runners, running them according to their Jobs' schedules.
type Job ¶
type Job struct { Name string `yaml:"name"` Description string `yaml:"description,omitempty"` Command string `yaml:"command"` When string `yaml:"when"` Lock bool `yaml:"lock,omitempty"` Env map[string]string `yaml:"env,omitempty"` }
Job is a data value that models a process that we want to run repeatedly.
type JobService ¶
type JobService interface {
All() []*Job
}
JobService is an interface that describes an API for loading Jobs.
Directories ¶
Path | Synopsis |
---|---|
Package cron provides mechanisms for using the upstream cron package.
|
Package cron provides mechanisms for using the upstream cron package. |
Package fs provides functions for working with the file system as well as services that specifically deal with the file system.
|
Package fs provides functions for working with the file system as well as services that specifically deal with the file system. |
Click to show internal directories.
Click to hide internal directories.