notifications.go 419 B

12345678910111213141516171819202122232425
  1. package config
  2. type (
  3. Notifications struct {
  4. Enabled bool `toml:"enabled"`
  5. Duration int `toml:"duration"`
  6. Sound Sound `toml:"sound"`
  7. }
  8. Sound struct {
  9. Enabled bool `toml:"enabled"`
  10. OnlyOnPing bool `toml:"only_on_ping"`
  11. }
  12. )
  13. func defaultNotifications() Notifications {
  14. return Notifications{
  15. Enabled: true,
  16. Duration: 500,
  17. Sound: Sound{
  18. Enabled: true,
  19. OnlyOnPing: true,
  20. },
  21. }
  22. }