feat(mail): send service identity mail through a leased worker
This commit is contained in:
1 parent
204c6bae62
commit
d21fd49a42
58 files changed
+7577
-164
No files matched your search
@@ -13,6 +13,7 @@ linters:
|
||||
- bodyclose
|
||||
- contextcheck
|
||||
- copyloopvar
|
||||
- depguard
|
||||
- durationcheck
|
||||
- embeddedstructfieldcheck
|
||||
- errname
|
||||
@@ -20,6 +21,7 @@ linters:
|
||||
- exhaustive
|
||||
- exptostd
|
||||
- fatcontext
|
||||
- forbidigo
|
||||
- gocheckcompilerdirectives
|
||||
- gochecknoinits
|
||||
- gochecksumtype
|
||||
@@ -58,6 +60,23 @@ linters:
|
||||
- zerologlint
|
||||
|
||||
settings:
|
||||
depguard:
|
||||
rules:
|
||||
# The local Resend stand-in exists for tests of the delivery layer
|
||||
# only; no production package may import it.
|
||||
resend-fixture-tests-only:
|
||||
list-mode: lax
|
||||
files:
|
||||
- "!$test"
|
||||
deny:
|
||||
- pkg: lincodex/backend/internal/adapter/secondary/mail/resend/resendfixture
|
||||
desc: the Resend fixture is for tests only
|
||||
forbidigo:
|
||||
forbid:
|
||||
# It accepts a loopback endpoint instead of the fixed Resend one, so
|
||||
# only tests may call it (see the exclusion for test files below).
|
||||
- pattern: ^resend\.NewLoopbackSender$
|
||||
msg: resend.NewLoopbackSender is for tests only; production uses resend.NewSender
|
||||
gocyclo:
|
||||
min-complexity: 15
|
||||
govet:
|
||||
@@ -122,6 +141,9 @@ linters:
|
||||
- gosec
|
||||
- errcheck
|
||||
- dupl
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- forbidigo
|
||||
- path: _test\.go
|
||||
text: net/http/httptest\.NewRequest must not be called
|
||||
linters:
|
||||
|
||||
Reference in new issue
Block a user