mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
4a17f30da8
* First pass at browser, discord, twilio notifications * Commit updated Javascript packages * Remove twilio notification support * Email notifications/smtp support * Fix Firefox notification support, remove chrome checks * WIP more email work * Add support for twitter notifications * Add stream title to discord and twitter notifications * Update notification registration modal * Fix hide/show email section * Commit updated API documentation * Commit updated Javascript packages * Fix post-rebase missing var * Remove unused var * Handle unsubscribe errors for browser push * Standardize email config prop names * Allow overriding go live email template * Some notifications cleanup * Commit updated Javascript packages * Remove email/smtp/mailjet support * Remove more references to email notifications Co-authored-by: Owncast <owncast@owncast.online>
27 lines
1,022 B
Go
27 lines
1,022 B
Go
package models
|
|
|
|
// DiscordConfiguration represents the configuration for the discord
|
|
// notification service.
|
|
type DiscordConfiguration struct {
|
|
Enabled bool `json:"enabled"`
|
|
Webhook string `json:"webhook,omitempty"`
|
|
GoLiveMessage string `json:"goLiveMessage,omitempty"`
|
|
}
|
|
|
|
// BrowserNotificationConfiguration represents the configuration for
|
|
// browser notifications.
|
|
type BrowserNotificationConfiguration struct {
|
|
Enabled bool `json:"enabled"`
|
|
GoLiveMessage string `json:"goLiveMessage,omitempty"`
|
|
}
|
|
|
|
// TwitterConfiguration represents the configuration for Twitter access.
|
|
type TwitterConfiguration struct {
|
|
Enabled bool `json:"enabled"`
|
|
APIKey string `json:"apiKey"` // aka consumer key
|
|
APISecret string `json:"apiSecret"` // aka consumer secret
|
|
AccessToken string `json:"accessToken"`
|
|
AccessTokenSecret string `json:"accessTokenSecret"`
|
|
BearerToken string `json:"bearerToken"`
|
|
GoLiveMessage string `json:"goLiveMessage,omitempty"`
|
|
}
|