Setup repeat camera down notifications #24
This commit is contained in:
1 parent
7b24dad5b9
commit
e6ccd8f1d7
8 files changed
+38
-46
No files matched your search
@@ -5,14 +5,13 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
||||
type Notifier interface {
|
||||
SendNotification(camera string, online bool)
|
||||
}
|
||||
|
||||
func createMessage(camera string, online bool) string {
|
||||
var msgTemplates = map[bool]string{
|
||||
true: "%s camera is back online!",
|
||||
true: "%s camera is back online!",
|
||||
false: "%s camera is offline!",
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user