feat(identity): add server sessions and audited mail recovery

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 11:03:46 +03:00
1 parent 20c03288d6
commit 4ee53d9a74
58 files changed
+5359 -567

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
// Command mail-retry inspects and schedules an audited retry of an unknown
// mail delivery. It never sends mail itself.
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"lincodex/backend/internal/adapter/primary/cli/mailretry"
)
func main() {
os.Exit(run())
}
func run() int {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
if err := mailretry.Run(ctx, os.Args[1:], os.LookupEnv, os.Stdout); err != nil {
_, _ = fmt.Fprintf(os.Stderr, "mail-retry: %v\n", err)
return 2
}
return 0
}