feat: change email, export my data, delete account (with data anonymization)
This commit is contained in:
1 parent
bb191c389a
commit
10a66cd979
123 files changed
+10789
-76
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package mailer
|
||||
|
||||
import (
|
||||
domain "RenewCMS/internal/domain/mail"
|
||||
"log"
|
||||
)
|
||||
|
||||
type AsyncDispatcher struct{}
|
||||
|
||||
func NewAsyncDispatcher() *AsyncDispatcher {
|
||||
return &AsyncDispatcher{}
|
||||
}
|
||||
|
||||
func (a *AsyncDispatcher) Dispatch(job func()) {
|
||||
go func() {
|
||||
defer func() {
|
||||
if recovered := recover(); recovered != nil {
|
||||
log.Println("panic in a background mail job:", recovered)
|
||||
}
|
||||
}()
|
||||
job()
|
||||
}()
|
||||
}
|
||||
|
||||
var _ domain.Dispatcher = &AsyncDispatcher{}
|
||||
Reference in new issue
Block a user