mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 03:29:03 +03:00
17 lines
390 B
Go
17 lines
390 B
Go
package webhooks
|
|
|
|
import (
|
|
"github.com/owncast/owncast/core/data"
|
|
"github.com/owncast/owncast/models"
|
|
)
|
|
|
|
func SendStreamStatusEvent(eventType models.EventType) {
|
|
SendEventToWebhooks(WebhookEvent{
|
|
Type: eventType,
|
|
EventData: map[string]interface{}{
|
|
"name": data.GetServerName(),
|
|
"summary": data.GetServerSummary(),
|
|
"streamTitle": data.GetStreamTitle(),
|
|
},
|
|
})
|
|
}
|