notification.go 1022 B

123456789101112131415161718192021222324252627
  1. package models
  2. // DiscordConfiguration represents the configuration for the discord
  3. // notification service.
  4. type DiscordConfiguration struct {
  5. Enabled bool `json:"enabled"`
  6. Webhook string `json:"webhook,omitempty"`
  7. GoLiveMessage string `json:"goLiveMessage,omitempty"`
  8. }
  9. // BrowserNotificationConfiguration represents the configuration for
  10. // browser notifications.
  11. type BrowserNotificationConfiguration struct {
  12. Enabled bool `json:"enabled"`
  13. GoLiveMessage string `json:"goLiveMessage,omitempty"`
  14. }
  15. // TwitterConfiguration represents the configuration for Twitter access.
  16. type TwitterConfiguration struct {
  17. Enabled bool `json:"enabled"`
  18. APIKey string `json:"apiKey"` // aka consumer key
  19. APISecret string `json:"apiSecret"` // aka consumer secret
  20. AccessToken string `json:"accessToken"`
  21. AccessTokenSecret string `json:"accessTokenSecret"`
  22. BearerToken string `json:"bearerToken"`
  23. GoLiveMessage string `json:"goLiveMessage,omitempty"`
  24. }