Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CronEntry ¶
type CronEntry struct {
Name string `yaml:"name"`
Cron string `yaml:"cron"`
Command []string `yaml:"command"`
Options map[string]interface{}
}
CronEntry holds a single entry from the crontab YAML file
type Runner ¶
type Runner struct {
Cmd []string
MutexName string
MutexPrefix string
MutexTTL time.Duration
TaskTTL time.Duration
RandomWait int
FireAndForget bool
Stdout RunnerPipe
Stderr RunnerPipe
LogBuffer RunnerPipe
RedisPool *redis.Pool
}
Runner holds all options and runtime data to run a single command
type RunnerPipe ¶
type RunnerPipe struct {
Reader *io.PipeReader
Writer *io.PipeWriter
}
RunnerPipe is used for reading command output
Click to show internal directories.
Click to hide internal directories.