func New() *Config {
	return &Config{
		Server: ServerConfig{
			Route: getEnv("API_URL", "/event"),
			Port:  getEnv("PORT", "9090"),
		},
		Kafka: KafkaConfig{
			Broker:      getEnvAsSlice("BOOTSTRAP_SERVERS", []string{"localhost:9092"}),
			TopicNewSMS: getEnv("TOPIC_NEW_SMS", "new-sms-json-v1"),
			TopicHam:    getEnv("TOPIC_HAM_SMS", "safe-sms-json-v1"),
			TopicSpam:   getEnv("TOPIC_SPAM_SMS", "spam-sms-json-v1"),
		},
		Producer: ProducerConfig{
			ClientID:        getEnv("CLIENT_ID", "sms-filter-stream"),
			Acks:            getEnv("ACKS", "all"),
			Retries:         getEnv("RETRIES", "10"),
			CompressionType: getEnv("COMPRESSION_TYPE", "lz4"),
		},
	}
}
// New builds the application configuration
New builds the application configuration
// New builds the application configuration
func New() *Config {
	return &Config{
		Server: ServerConfig{
			Route: getEnv("API_URL", "/event"),
			Port:  getEnv("PORT", "9090"),
		},
		Kafka: KafkaConfig{
			Broker:      getEnvAsSlice("BOOTSTRAP_SERVERS", []string{"localhost:9092"}),
			TopicNewSMS: getEnv("TOPIC_NEW_SMS", "new-sms-json-v1"),
			TopicHam:    getEnv("TOPIC_HAM_SMS", "safe-sms-json-v1"),
			TopicSpam:   getEnv("TOPIC_SPAM_SMS", "spam-sms-json-v1"),
		},
		Producer: ProducerConfig{
			ClientID:        getEnv("CLIENT_ID", "sms-filter-stream"),
			Acks:            getEnv("ACKS", "all"),
			Retries:         getEnv("RETRIES", "10"),
			CompressionType: getEnv("COMPRESSION_TYPE", "lz4"),
		},
	}
}
func New ( ) * Config { return & Config { Server : ServerConfig { Route : getEnv ( " " , " " ) , Port : getEnv ( " " , " " ) , } , Kafka : KafkaConfig { Broker : getEnvAsSlice ( " " , [ ] string { " " } ) , TopicNewSMS : getEnv ( " " , " " ) , TopicHam : getEnv ( " " , " " ) , TopicSpam : getEnv ( " " , " " ) , } , Producer : ProducerConfig { ClientID : getEnv ( " " , " " ) , Acks : getEnv ( " " , " " ) , Retries : getEnv ( " " , " " ) , CompressionType : getEnv ( " " , " " ) , } , } }
New builds the application configuration
New builds the application configuration