Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Servers map[string]Server `mapstructure:"servers"` JWTSecretKey string `mapstructure:"jwt_secret_key"` RecaptchaSecretKey string `mapstructure:"recaptcha_secret_key"` APIUrl string `mapstructure:"api_url"` TelegramBot TelegramBot `mapstructure:"telegram_bot"` SwaggerPort int `mapstructure:"swagger_port"` TestMode bool `mapstructure:"test_mode"` }
func InitConfig ¶
type PostgresDB ¶
type Server ¶
type Server struct { Address string `mapstructure:"address,omitempty"` PostgresDB PostgresDB `mapstructure:"postgres_db"` MongoDB MongoDB `mapstructure:"mongo_db"` }
type TelegramBot ¶
Click to show internal directories.
Click to hide internal directories.