2023-12-16 07:20:01 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
2024-01-14 15:53:37 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/adapter/redis"
|
2024-01-17 10:04:50 +00:00
|
|
|
smsprovider "git.gocasts.ir/ebhomengo/niki/adapter/sms_provider/kavenegar"
|
2023-12-16 07:20:01 +00:00
|
|
|
"git.gocasts.ir/ebhomengo/niki/repository/mysql"
|
2024-01-19 16:56:11 +00:00
|
|
|
adminauthservice "git.gocasts.ir/ebhomengo/niki/service/auth/admin"
|
|
|
|
benefactorauthservice "git.gocasts.ir/ebhomengo/niki/service/auth/benefactor"
|
2024-01-14 15:53:37 +00:00
|
|
|
benefactorservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/benefactor"
|
2023-12-16 07:20:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type HTTPServer struct {
|
|
|
|
Port int `koanf:"port"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Config struct {
|
2024-01-19 16:56:11 +00:00
|
|
|
HTTPServer HTTPServer `koanf:"http_server"`
|
|
|
|
Mysql mysql.Config `koanf:"mysql"`
|
|
|
|
Auth benefactorauthservice.Config `koanf:"auth"`
|
|
|
|
AdminAuth adminauthservice.Config `koanf:"admin_auth"`
|
|
|
|
Redis redis.Config `koanf:"redis"`
|
|
|
|
KavenegarSmsProvider smsprovider.Config `koanf:"kavenegar_sms_provider"`
|
|
|
|
BenefactorSvc benefactorservice.Config `koanf:"benefactor_service"`
|
2023-12-16 07:20:01 +00:00
|
|
|
}
|