2023-12-16 07:20:01 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
2024-08-01 10:20:18 +00:00
|
|
|
smsprovider "git.gocasts.ir/ebhomengo/niki/adapter/kavenegar"
|
2024-01-14 15:53:37 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/adapter/redis"
|
2023-12-16 07:20:01 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/repository/mysql"
|
2024-01-25 11:43:39 +00:00
|
|
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
|
2024-01-14 15:53:37 +00:00
|
|
|
benefactorservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/benefactor"
|
2024-08-16 17:37:37 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/service/notification"
|
2023-12-16 07:20:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type HTTPServer struct {
|
|
|
|
Port int `koanf:"port"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Config struct {
|
2024-01-25 11:43:39 +00:00
|
|
|
HTTPServer HTTPServer `koanf:"http_server"`
|
2024-04-28 11:27:23 +00:00
|
|
|
Mysql mysql.Config `koanf:"mariadb"`
|
2024-08-01 10:20:18 +00:00
|
|
|
BenefactorAuth authservice.Config `koanf:"benefactor_auth"`
|
2024-01-25 11:43:39 +00:00
|
|
|
AdminAuth authservice.Config `koanf:"admin_auth"`
|
|
|
|
Redis redis.Config `koanf:"redis"`
|
|
|
|
KavenegarSmsProvider smsprovider.Config `koanf:"kavenegar_sms_provider"`
|
|
|
|
BenefactorSvc benefactorservice.Config `koanf:"benefactor_service"`
|
2024-08-16 17:37:37 +00:00
|
|
|
NotificationSvc notification.Config `koanf:"notification_service"`
|
2023-12-16 07:20:01 +00:00
|
|
|
}
|