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,19 @@
package capability
import (
"strings"
"git.sendico.io/tech/sxchnge/shared/errors"
)
var ErrCapabilityUnavailable = merrors.Define("capability unavailable")
var ErrClosed = merrors.Define("closed")
func Unavailable(name string) error {
name = strings.TrimSpace(name)
if name == "" {
return ErrCapabilityUnavailable
}
return merrors.Wrap(ErrCapabilityUnavailable, name)
}