diff pkg/imports/stsh.go @ 4852:046a07a33b19

Fixed the golint issues of the imports package.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Nov 2019 16:08:55 +0100
parents e020e6e34ad7
children e4ab338e7ba9
line wrap: on
line diff
--- a/pkg/imports/stsh.go	Tue Nov 19 15:46:16 2019 +0100
+++ b/pkg/imports/stsh.go	Tue Nov 19 16:08:55 2019 +0100
@@ -31,10 +31,12 @@
 	"gemma.intevation.de/gemma/pkg/models"
 )
 
+// StretchShape imports stretches from an uploaded shape file.
 type StretchShape struct {
 	Dir string `json:"dir"`
 }
 
+// STSHJobKind is the import queue type identifier.
 const STSHJobKind JobKind = "stsh"
 
 type stshJobCreator struct{}
@@ -84,6 +86,7 @@
 	return stJobCreator{}.StageDone(ctx, tx, id)
 }
 
+// CleanUp removes the folder with the uploaded shape file.
 func (stsh *StretchShape) CleanUp() error {
 	return os.RemoveAll(stsh.Dir)
 }
@@ -123,6 +126,7 @@
 	return countries, nil
 }
 
+// Do executes the actual stretch import from the shape file.
 func (stsh *StretchShape) Do(
 	ctx context.Context,
 	importID int64,