watchtower/pkg/notifications/model.go

20 lines
382 B
Go
Raw Normal View History

package notifications
import (
2024-07-08 15:18:32 +02:00
t "github.com/beatkind/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
)
// StaticData is the part of the notification template data model set upon initialization
type StaticData struct {
Title string
Host string
}
// Data is the notification template data model
type Data struct {
StaticData
Entries []*log.Entry
Report t.Report
}