feat: add zohal pkg and http util
This commit is contained in:
+10
-5
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user