Mercurial > gemma
comparison pkg/imports/wx.go @ 4798:ca6a5f722471
Added Description method to most imports.
Only for imports where information relevant to the administrator is
relevant.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 25 Oct 2019 18:25:38 +0200 |
parents | 5d7ce7f926eb |
children | f32d086b5dbf |
comparison
equal
deleted
inserted
replaced
4797:9a4f5f319419 | 4798:ca6a5f722471 |
---|---|
19 "database/sql" | 19 "database/sql" |
20 "encoding/json" | 20 "encoding/json" |
21 "errors" | 21 "errors" |
22 "fmt" | 22 "fmt" |
23 "io" | 23 "io" |
24 "strings" | |
24 "time" | 25 "time" |
25 | 26 |
26 "gemma.intevation.de/gemma/pkg/pgxutils" | 27 "gemma.intevation.de/gemma/pkg/pgxutils" |
27 "gemma.intevation.de/gemma/pkg/wfs" | 28 "gemma.intevation.de/gemma/pkg/wfs" |
28 ) | 29 ) |
40 SortBy string `json:"sort-by"` | 41 SortBy string `json:"sort-by"` |
41 // User is an optional username for Basic Auth. | 42 // User is an optional username for Basic Auth. |
42 User string `json:"user,omitempty"` | 43 User string `json:"user,omitempty"` |
43 // Password is an optional password for Basic Auth. | 44 // Password is an optional password for Basic Auth. |
44 Password string `json:"password,omitempty"` | 45 Password string `json:"password,omitempty"` |
46 } | |
47 | |
48 func (wx *WaterwayAxis) Description() (string, error) { | |
49 | |
50 var descs []string | |
51 | |
52 descs = append(descs, wx.URL) | |
53 descs = append(descs, wx.FeatureType) | |
54 return strings.Join(descs, "|"), nil | |
45 } | 55 } |
46 | 56 |
47 // WXJobKind is the import queue type identifier. | 57 // WXJobKind is the import queue type identifier. |
48 const WXJobKind JobKind = "wx" | 58 const WXJobKind JobKind = "wx" |
49 | 59 |