-
Notifications
You must be signed in to change notification settings - Fork 3
/
models_gen.go
50 lines (46 loc) · 1.56 KB
/
models_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package cron_gql
type AddJobInput struct {
// Cron expression for scheduling e.g. '0 * * * *'
CronExp string `json:"cronExp"`
// Root directory to run the command
RootDir string `json:"rootDir"`
// Terminal-based command
Cmd string `json:"cmd"`
// Command arguments
Args []*string `json:"args"`
// Tags for easier job retrieval
Tags []*string `json:"tags"`
}
type Job struct {
// Unique ID for the job (generated)
JobID int `json:"jobID"`
// Cron expression used for scheduling e.g. '0 * * * *'
CronExp string `json:"cronExp"`
// Root directory to run the command
RootDir string `json:"rootDir"`
// Terminal-based command
Cmd string `json:"cmd"`
// Command arguments
Args []*string `json:"args"`
// Tags for easier job retrieval
Tags []*string `json:"tags"`
// Last scheduled execution time (human friendly)
LastScheduledRun *string `json:"lastScheduledRun"`
// Next scheduled execution time (human friendly)
NextScheduledRun *string `json:"nextScheduledRun"`
// Last forced execution time (human friendly)
LastForcedRun *string `json:"lastForcedRun"`
// Last scheduled execution time (seconds)
LastScheduledTime *int `json:"lastScheduledTime"`
// Next scheduled execution time (seconds)
NextScheduledTime *int `json:"nextScheduledTime"`
// Last forced execution time (seconds)
LastForcedTime *int `json:"lastForcedTime"`
}
type JobsInput struct {
// Return job with unique jobID
JobID *int `json:"jobID"`
// Return all jobs which match at least one of the tags
Tags []*string `json:"tags"`
}