Mercurial > gemma
comparison pkg/imports/sr.go @ 1646:a0982c38eac0
Import queue: Implemented email notifications.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 20 Dec 2018 15:33:29 +0100 |
parents | 056a86b24be2 |
children | 819f67c31dfb |
comparison
equal
deleted
inserted
replaced
1645:14bb1289b97b | 1646:a0982c38eac0 |
---|---|
69 | 69 |
70 type srJobCreator struct{} | 70 type srJobCreator struct{} |
71 | 71 |
72 func init() { | 72 func init() { |
73 RegisterJobCreator(SRJobKind, srJobCreator{}) | 73 RegisterJobCreator(SRJobKind, srJobCreator{}) |
74 } | |
75 | |
76 func (srJobCreator) Description() string { | |
77 return "sounding results" | |
74 } | 78 } |
75 | 79 |
76 func (srJobCreator) Create(_ JobKind, data string) (Job, error) { | 80 func (srJobCreator) Create(_ JobKind, data string) (Job, error) { |
77 sr := new(SoundingResult) | 81 sr := new(SoundingResult) |
78 if err := common.FromJSONString(data, sr); err != nil { | 82 if err := common.FromJSONString(data, sr); err != nil { |