1
0
Fork 0
hswro-alarm-bot/sender_worker.go

26 lines
417 B
Go
Raw Permalink Normal View History

2024-02-10 23:13:31 +00:00
package main
import (
2024-02-19 18:52:40 +00:00
"html/template"
"time"
)
const (
NotificationPartitionIndex = 0
httpTimeout = 1 * time.Second
2024-02-10 23:13:31 +00:00
)
type Sender interface {
2024-02-19 18:52:40 +00:00
Send(msg GenericMessage, tpl *template.Template) error
2024-02-10 23:13:31 +00:00
}
2024-02-11 10:51:41 +00:00
type Sleeper interface {
Sleep(ch chan<- interface{})
}
2024-12-27 11:28:51 +00:00
type MatterbridgeMessage struct {
Text string `json:"text"`
Username string `json:"username"`
Gateway string `json:"gateway"`
}