Mercurial > gemma
comparison pkg/models/importbase.go @ 2029:8d006afa7c1b unify_imports
Imports: Stretch imports are not configurabel and scheduable.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 25 Jan 2019 09:55:56 +0100 |
parents | 070ac9dd61a1 |
children | 83108e90b223 |
comparison
equal
deleted
inserted
replaced
2028:a8d8e855cb26 | 2029:8d006afa7c1b |
---|---|
22 | 22 |
23 type ( | 23 type ( |
24 // CronSpec is a string containing a cron line. | 24 // CronSpec is a string containing a cron line. |
25 CronSpec string | 25 CronSpec string |
26 | 26 |
27 EmailType struct { | |
28 Email bool `json:"send-email,omitempty"` | |
29 } | |
30 | |
27 QueueConfigurationType struct { | 31 QueueConfigurationType struct { |
32 EmailType | |
28 Trys *int `json:"trys,omitempty"` | 33 Trys *int `json:"trys,omitempty"` |
29 WaitRetry *time.Duration `json:"wait-retry,omitempty"` | 34 WaitRetry *time.Duration `json:"wait-retry,omitempty"` |
30 Due *time.Time `json:"due,omitempty"` | 35 Due *time.Time `json:"due,omitempty"` |
31 Cron *CronSpec `json:"cron,omitempty"` | 36 Cron *CronSpec `json:"cron,omitempty"` |
32 EMail bool `json:"send-email,omitempty"` | |
33 } | |
34 | |
35 QueueConfigurationGetter interface { | |
36 GetQueueConfiguration() *QueueConfigurationType | |
37 } | 37 } |
38 | 38 |
39 URLType struct { | 39 URLType struct { |
40 URL string `json:"url"` | 40 URL string `json:"url"` |
41 Insecure bool `json:"insecure,omitempty"` | 41 Insecure bool `json:"insecure,omitempty"` |
42 User *string `json:"user,omitempty"` | 42 User *string `json:"user,omitempty"` |
43 Password *string `json:"password,omitempty"` | 43 Password *string `json:"password,omitempty"` |
44 } | |
45 | |
46 EmailTypeGetter interface { | |
47 GetEmailType() *EmailType | |
48 } | |
49 | |
50 QueueConfigurationGetter interface { | |
51 GetQueueConfiguration() *QueueConfigurationType | |
44 } | 52 } |
45 | 53 |
46 URLTypeGetter interface { | 54 URLTypeGetter interface { |
47 GetURLType() *URLType | 55 GetURLType() *URLType |
48 } | 56 } |