Organize backend into product executable and shared Go modules
This commit is contained in:
1 parent
981e84a4b4
commit
f0720ec66b
382 files changed
+1944
-6989
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package mzap
|
||||
|
||||
import (
|
||||
"git.sendico.io/tech/sxchnge/shared/logging/mask"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func AccRef(accountRef bson.ObjectID) zap.Field {
|
||||
return ObjRef("account_ref", accountRef)
|
||||
}
|
||||
|
||||
func Email(email string) zap.Field {
|
||||
return MaskEmail("email", email)
|
||||
}
|
||||
|
||||
func MaskEmail(field, email string) zap.Field {
|
||||
return zap.String(field, mask.Email(email))
|
||||
}
|
||||
|
||||
func MaskEmails(field string, emails []string) zap.Field {
|
||||
return zap.Strings(field, mask.Emails(emails))
|
||||
}
|
||||
Reference in new issue
Block a user