Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/pkg/imports/wx.go Fri Oct 25 17:48:33 2019 +0200 +++ b/pkg/imports/wx.go Fri Oct 25 18:25:38 2019 +0200 @@ -21,6 +21,7 @@ "errors" "fmt" "io" + "strings" "time" "gemma.intevation.de/gemma/pkg/pgxutils" @@ -44,6 +45,15 @@ Password string `json:"password,omitempty"` } +func (wx *WaterwayAxis) Description() (string, error) { + + var descs []string + + descs = append(descs, wx.URL) + descs = append(descs, wx.FeatureType) + return strings.Join(descs, "|"), nil +} + // WXJobKind is the import queue type identifier. const WXJobKind JobKind = "wx"