summaryrefslogtreecommitdiff
path: root/jobs.go
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-31 14:14:21 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-31 14:14:21 +0200
commit2d7f0cc0e309046607c7bb15954fb258c37efab7 (patch)
tree03a77da9e17f96c29e51e2f04fa67b7b9cde075c /jobs.go
parent870e3ab1d2deed3a601bd6ba96856c3a00d89eb3 (diff)
downloadcacert-boardvoting-2d7f0cc0e309046607c7bb15954fb258c37efab7.tar.gz
cacert-boardvoting-2d7f0cc0e309046607c7bb15954fb258c37efab7.tar.xz
cacert-boardvoting-2d7f0cc0e309046607c7bb15954fb258c37efab7.zip
Modernize Go code
- switch from go-logging to logrus - handle all errors - use gomail's NewDialer instead of deprecated NewPlainDialer
Diffstat (limited to 'jobs.go')
-rw-r--r--jobs.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/jobs.go b/jobs.go
index 46ed7dc..0fe6086 100644
--- a/jobs.go
+++ b/jobs.go
@@ -1,6 +1,9 @@
package main
-import "time"
+import (
+ log "github.com/sirupsen/logrus"
+ "time"
+)
type Job interface {
Schedule()