Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
GetConfig() Cfg
}
Config is the Interface providing Configs for the Procwatch
type Schedule ¶
type Schedule struct {
Schedule []SchedulerEntity `json:"schedule"`
}
Schedule Object
type SchedulePath ¶
type SchedulePath string
SchedulePath to config
func (SchedulePath) Parse ¶
func (sc SchedulePath) Parse() (*Schedule, error)
Parse json from path and return Schedule
type SchedulerEntity ¶
type SchedulerEntity struct { Command string `json:"command"` Restart bool `json:"restart"` Day string `json:"day"` Hour string `json:"hour"` Minute string `json:"minute"` }
SchedulerEntity all data required by Procwatch
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is the the Object Handling the Procwatch
func (*Watcher) GetCmdChannel ¶
GetCmdChannel returns the channel to which scheduler and watcher write their commands
func (*Watcher) GetOutput ¶
func (w *Watcher) GetOutput() (stderr, stdout io.ReadCloser)
GetOutput returns the Stderr and Stdout Readers
Click to show internal directories.
Click to hide internal directories.