Mercurial > gemma
diff pkg/imports/sec.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 | c489c78ed525 |
children | 91cb4a7b1b13 |
line wrap: on
line diff
--- a/pkg/imports/sec.go Mon Aug 05 17:45:03 2019 +0200 +++ b/pkg/imports/sec.go Mon Aug 05 18:14:41 2019 +0200 @@ -22,6 +22,7 @@ "gemma.intevation.de/gemma/pkg/pgxutils" ) +// Section is a Job to create a section in the database. type Section struct { Name string `json:"name"` From models.Isrs `json:"from"` @@ -33,13 +34,12 @@ Date models.Date `json:"date-info"` } +// SECJobKind is the import queue type identifier. const SECJobKind JobKind = "sec" type secJobCreator struct{} -func init() { - RegisterJobCreator(SECJobKind, secJobCreator{}) -} +func init() { RegisterJobCreator(SECJobKind, secJobCreator{}) } func (secJobCreator) Description() string { return "section" }