feat: add zohal pkg and http util

This commit is contained in:
2025-09-14 14:28:23 +03:30
parent 68d33d5ad9
commit 667d2ce2f4
4 changed files with 180 additions and 5 deletions
+10 -5
View File
@@ -1,12 +1,12 @@
package config
type Config struct {
Server Server `mapstructure:"server"`
JWT JWT `mapstructure:"jwt"`
DB DB `mapstructure:"db"`
Redis Redis `mapstructure:"redis"`
Server Server `mapstructure:"server"`
JWT JWT `mapstructure:"jwt"`
DB DB `mapstructure:"db"`
Redis Redis `mapstructure:"redis"`
KYCProvider KYC `mapstructure:"kyc"`
}
type Server struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
@@ -31,3 +31,8 @@ type JWT struct {
RefreshTokenExpMinutes uint `mapstructure:"refresh_token_exp_minutes"`
TokenSecret string `mapstructure:"token_secret"`
}
type KYC struct {
APIKey string `mapstructure:"api_key"`
URL string `mapstructure:"url"`
}