2024-02-10 23:13:31 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-02-19 18:52:40 +00:00
|
|
|
"html/template"
|
2025-01-03 22:39:32 +00:00
|
|
|
"time"
|
2024-03-06 17:45:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
NotificationPartitionIndex = 0
|
2025-01-03 22:39:32 +00:00
|
|
|
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"`
|
|
|
|
}
|