18 lines
		
	
	
		
			276 B
		
	
	
	
		
			Go
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			276 B
		
	
	
	
		
			Go
		
	
	
		
			Executable File
		
	
	
	
	
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",
 | 
						|
	}
 | 
						|
}
 |