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

26 lines
417 B
Go

package main
import (
"html/template"
"time"
)
const (
NotificationPartitionIndex = 0
httpTimeout = 1 * time.Second
)
type Sender interface {
Send(msg GenericMessage, tpl *template.Template) error
}
type Sleeper interface {
Sleep(ch chan<- interface{})
}
type MatterbridgeMessage struct {
Text string `json:"text"`
Username string `json:"username"`
Gateway string `json:"gateway"`
}