Documentation
¶
Index ¶
- func DeleteJob(name string) error
- func DeleteJobById(id string) error
- func HttpCrontabs(w http.ResponseWriter, r *http.Request)
- func ListJobs() (et.Items, error)
- func Load()
- func Save()
- 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(name, spec, channel string, params et.Json, fn func()) (*Job, error)
- func (s *Jobs) DeleteJob(name string) error
- func (s *Jobs) DeleteJobById(id string) error
- func (s *Jobs) List() et.Items
- func (s *Jobs) Load() error
- func (s *Jobs) Save() error
- 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
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteJobById ¶
* * DeleteJobById * @param id string * @return error *
func HttpCrontabs ¶ added in v0.1.4
func HttpCrontabs(w http.ResponseWriter, r *http.Request)
* * HttpCrontabs * @param w http.ResponseWriter * @param r *http.Request *
func StartJobById ¶
* * StartJobById * @param id string * @return int, error *
func StopJobById ¶
* * StopJobById * @param id string * @return error *
Types ¶
type Job ¶
type Job struct {
ID string `json:"id"`
Name string `json:"name"`
Channel string `json:"channel"`
Params et.Json `json:"params"`
Spec string `json:"spec"`
Started bool `json:"started"`
Idx int `json:"idx"`
// contains filtered or unexported fields
}
func AddFnJob ¶ added in v0.1.2
* * AddFnJob * @param name, spec, channel string, params et.Json * @return *Job, error *
type Jobs ¶
type Jobs struct {
Id string `json:"id"`
Started bool `json:"started"`
// contains filtered or unexported fields
}
func (*Jobs) AddJob ¶
* * AddJob * @param name, spec, channel string, params et.Json * @return *Job, error *
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.