Documentation
¶
Index ¶
- func AddJob(id, name, spec string, job func()) error
- func DeleteJob(name string) error
- func DeleteJobById(id string) error
- func ListJobs() (et.Items, error)
- func Load()
- func Start() error
- func StartJob(name string) (int, error)
- func StartJobById(id string) (int, error)
- func Stop() error
- func StopJob(name string) error
- func StopJobById(id string) error
- type Job
- type Jobs
- func (s *Jobs) AddJob(id, name, spec string, job func()) error
- func (s *Jobs) DeleteJob(name string) error
- func (s *Jobs) DeleteJobById(id string) error
- func (s *Jobs) List() et.Items
- func (s *Jobs) Start() error
- func (s *Jobs) StartJob(name string) (int, error)
- func (s *Jobs) StartJobById(id string) (int, error)
- func (s *Jobs) Stop() error
- func (s *Jobs) StopJob(name string) error
- func (s *Jobs) StopJobById(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteJobById ¶
* * DeleteJobById * @param id string * @return error *
func StartJobById ¶
* * StartJobById * @param id string * @return int, error *
func StopJobById ¶
* * StopJobById * @param id string * @return error *
Types ¶
type Jobs ¶
type Jobs struct {
Id string `json:"id"`
Started bool `json:"started"`
// contains filtered or unexported fields
}
func (*Jobs) DeleteJobById ¶
* * DeleteJobById * @param id string * @return error *
func (*Jobs) StartJobById ¶
* * StartJobById * @param id string * @return int, error *
func (*Jobs) StopJobById ¶
* * StopJobById * @param id string * @return error *
Click to show internal directories.
Click to hide internal directories.