Implement notifications service with shared messaging and email drivers (#36)

This commit is contained in:
Stephan D committed 2026-09-12 14:41:55 +02:00
1 parent 36277b6c45
commit 5c2d36281b
54 files changed
+3746 -6

No files matched your search

@@ -0,0 +1,25 @@
package reliable
import "time"
func (s DurableSettings) StreamMaxAge() time.Duration {
if s.Stream.MaxAgeHours <= 0 {
return 48 * time.Hour
}
return time.Duration(s.Stream.MaxAgeHours) * time.Hour
}
func (s DurableSettings) IsProductionValidation() bool {
return s.Provisioning.Environment == DurableEnvironmentProduction
}
func (s DurableSettings) AllowsAutoProvision() bool {
switch s.Provisioning.Mode {
case DurableProvisioningApp:
return true
case DurableProvisioningHybrid:
return s.Provisioning.Environment != DurableEnvironmentProduction
default:
return false
}
}