optimize cfg
This commit is contained in:
parent
fdc2c7f692
commit
8911f4f4e1
@ -3,7 +3,6 @@ package initialize
|
|||||||
import (
|
import (
|
||||||
"gitea.pena/PenaSide/common/mongo"
|
"gitea.pena/PenaSide/common/mongo"
|
||||||
"github.com/caarlos0/env/v8"
|
"github.com/caarlos0/env/v8"
|
||||||
"github.com/gofiber/fiber/v2"
|
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
@ -36,10 +35,9 @@ type ExternalCfg struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MailClientCfg struct {
|
type MailClientCfg struct {
|
||||||
ApiURL string `env:"API_URL,required"`
|
ApiURL string `env:"API_URL,required"`
|
||||||
Sender string `env:"MAIL_SENDER,required"`
|
Sender string `env:"MAIL_SENDER,required"`
|
||||||
ApiKey string `env:"MAIL_API_KEY,required"`
|
ApiKey string `env:"MAIL_API_KEY,required"`
|
||||||
FiberClient *fiber.Client
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type JWTConfiguration struct {
|
type JWTConfiguration struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user