mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
29 lines
626 B
Go
29 lines
626 B
Go
package notification
|
|
|
|
type Action struct {
|
|
ID string `json:"id"`
|
|
Endpoint string `json:"endpoint"`
|
|
Method string `json:"method"`
|
|
Data map[string]interface{} `json:"data,omitempty"`
|
|
}
|
|
|
|
type Notification struct {
|
|
Title string `json:"title,omitempty"`
|
|
Message string `json:"message"`
|
|
Actions []Action `json:"actions,omitempty"`
|
|
}
|
|
|
|
type Channel string
|
|
|
|
const (
|
|
ChannelSignal Channel = "signal"
|
|
ChannelWebhook Channel = "webhook"
|
|
)
|
|
|
|
type Mapping struct {
|
|
Endpoint string
|
|
AppName string
|
|
Channel Channel
|
|
GroupID *string
|
|
UpEndpoint *string
|
|
}
|