Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDevelopment ¶
func IsDevelopment() bool
func IsProduction ¶
func IsProduction() bool
Types ¶
type Configuration ¶
type Configuration struct { Environment string `mapstructure:"environment"` Version string `mapstructure:"version"` Port uint16 `mapstructure:"port"` DBPort string `mapstructure:"db_port"` LogLevel string `mapstructure:"log_level"` DBUser string `mapstructure:"db_user"` DBHost string `mapstructure:"db_host"` DBName string `mapstructure:"db_name"` DBPassword string `mapstructure:"db_password"` KafkaClientID string `mapstructure:"kafka_clientID"` KafkaTxnID string `mapstructure:"kafka_txnID"` KafkaBrokers string `mapstructure:"kafka_brokers"` KafkaGroup string `mapstructure:"kafka_group"` SaslEnable bool `mapstructure:"sasl_enable"` SaslMechanism string `mapstructure:"sasl_mechanism"` KafkaUsername string `mapstructure:"kafka_username"` KafkaPassword string `mapstructure:"kafka_password"` AlphaVantageApiKey string `mapstructure:"alpha_vantage"` FinHistoryApiKey string `mapstructure:"fin_history"` }
var (
Spec *Configuration
)
Click to show internal directories.
Click to hide internal directories.