Mercurial > gemma
diff pkg/imports/dmv.go @ 4179:a376351d2774
Another round of doc strings to make 'golint' a little bit more happy with the imports package.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 05 Aug 2019 18:14:41 +0200 |
parents | 8b75ac5e243e |
children | ca6a5f722471 |
line wrap: on
line diff
--- a/pkg/imports/dmv.go Mon Aug 05 17:45:03 2019 +0200 +++ b/pkg/imports/dmv.go Mon Aug 05 18:14:41 2019 +0200 @@ -22,6 +22,8 @@ "gemma.intevation.de/gemma/pkg/models" ) +// DistanceMarksVirtual is a Job to import virtual distance marks +// from an external SOAP service into the database. type DistanceMarksVirtual struct { // URL is the URL of the SOAP service. URL string `json:"url"` @@ -34,13 +36,12 @@ Insecure bool `json:"insecure"` } +// DMVJobKind is the import queue type identifier. const DMVJobKind JobKind = "dmv" type dmvJobCreator struct{} -func init() { - RegisterJobCreator(DMVJobKind, dmvJobCreator{}) -} +func init() { RegisterJobCreator(DMVJobKind, dmvJobCreator{}) } func (dmvJobCreator) Description() string { return "distance marks virtual" } @@ -81,6 +82,8 @@ ` ) +// Do executes the actual downloading and importing +// of the virtual distance marks. func (dmv *DistanceMarksVirtual) Do( ctx context.Context, importID int64,