Mercurial > gemma
comparison pkg/imports/gm.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 | 334d13e63342 |
children | 819f67c31dfb |
comparison
equal
deleted
inserted
replaced
1645:14bb1289b97b | 1646:a0982c38eac0 |
---|---|
77 | 77 |
78 type gmJobCreator struct{} | 78 type gmJobCreator struct{} |
79 | 79 |
80 func init() { | 80 func init() { |
81 RegisterJobCreator(GMJobKind, gmJobCreator{}) | 81 RegisterJobCreator(GMJobKind, gmJobCreator{}) |
82 } | |
83 | |
84 func (gmJobCreator) Description() string { | |
85 return "gauge measurements" | |
82 } | 86 } |
83 | 87 |
84 func (gmJobCreator) Create(_ JobKind, data string) (Job, error) { | 88 func (gmJobCreator) Create(_ JobKind, data string) (Job, error) { |
85 gm := new(GaugeMeasurement) | 89 gm := new(GaugeMeasurement) |
86 if err := common.FromJSONString(data, gm); err != nil { | 90 if err := common.FromJSONString(data, gm); err != nil { |