first commit
This commit is contained in:
		
							
								
								
									
										17
									
								
								internal/config/config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								internal/config/config.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
package config
 | 
			
		||||
 | 
			
		||||
type Config struct {
 | 
			
		||||
	DB    string
 | 
			
		||||
	HTTP  string
 | 
			
		||||
	GRPC  string
 | 
			
		||||
	Kafka string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Load() Config {
 | 
			
		||||
	return Config{
 | 
			
		||||
		DB:    "dbname=test password=GjitkYf[eq user=postgres sslmode=disable",
 | 
			
		||||
		HTTP:  ":8080",
 | 
			
		||||
		GRPC:  ":50051",
 | 
			
		||||
		Kafka: "localhost:9092",
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user