Start implementing a logger

This commit is contained in:
2024-05-06 18:00:31 +02:00
parent 557b4dce44
commit da0f3da7e3
3 changed files with 100 additions and 30 deletions

View File

@ -1,5 +1,10 @@
package consts
import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
const (
USERNAME_LABEL_KEY = "username"
EMAIL_VERIFIED_LABEL_KEY = "email-verified"
@ -7,3 +12,7 @@ const (
EMAIL_VERIFIED_LABEL_FALSE = "false"
SOFTPLAYER_ACCOUNTS_NAMESPACE = "softplayer-accounts"
)
var (
ErrSystemError = status.Error(codes.Internal, "a system error occured, we will try to fix it as soon as possible")
)