Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DB *gorm.DB // global connection to the DB
)
Functions ¶
Types ¶
type Config ¶
type Config struct { DBHost string `mapstructure:"POSTGRES_HOST"` DBUserName string `mapstructure:"POSTGRES_USER"` DBUserPassword string `mapstructure:"POSTGRES_PASSWORD"` DBName string `mapstructure:"POSTGRES_DB"` DBPort string `mapstructure:"POSTGRES_PORT"` JwtSecret string `mapstructure:"JWT_SECRET"` JwtExpiresIn time.Duration `mapstructure:"JWT_EXPIRED_IN"` JwtMaxAge int `mapstructure:"JWT_MAXAGE"` ClientOrigin string `mapstructure:"CLIENT_ORIGIN"` CorsAllowedOrigins []string `mapstructure:"ALLOWED_ORIGINS"` KafkaBrokers string `mapstructure:"KAFKA_BROKERS"` KafkaNumOfPartitions int `mapstructure:"KAFKA_NUM_OF_PARTITIONS"` EnableWebsocket bool `mapstructure:"ENABLE_WEBSOCKET"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.