func New() *Config {
	return &Config{
		Server: ServerConfig{
			Route: getEnv("API_URL", "/event"),
			Port:  getEnv("PORT", "9090"),
		},
		Kafka: KafkaConfig{
			Broker:     getEnv("BOOTSTRAP_SERVERS", "localhost:9092"),
			Schema:     getEnv("SCHEMA_REGISTRY", "http://localhost:8081"),
			Topic:      getEnv("KAFKA_TOPIC", "new-sms-json-v1"),
			SchemaType: getEnv("SCHEMA_TYPE", "JSON"),
		},
		Producer: ProducerConfig{
			ClientID:        getEnv("CLIENT_ID", "sms-event-integration"),
			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:     getEnv("BOOTSTRAP_SERVERS", "localhost:9092"),
			Schema:     getEnv("SCHEMA_REGISTRY", "http://localhost:8081"),
			Topic:      getEnv("KAFKA_TOPIC", "new-sms-json-v1"),
			SchemaType: getEnv("SCHEMA_TYPE", "JSON"),
		},
		Producer: ProducerConfig{
			ClientID:        getEnv("CLIENT_ID", "sms-event-integration"),
			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 : getEnv ( " " , " " ) , Schema : getEnv ( " " , " " ) , Topic : getEnv ( " " , " " ) , SchemaType : getEnv ( " " , " " ) , } , Producer : ProducerConfig { ClientID : getEnv ( " " , " " ) , Acks : getEnv ( " " , " " ) , Retries : getEnv ( " " , " " ) , CompressionType : getEnv ( " " , " " ) , } , } }
New builds the application configuration
New builds the application configuration