Not reaching catalog
This commit is contained in:
		
							
								
								
									
										17
									
								
								conf/conf.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								conf/conf.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| package conf | ||||
|  | ||||
| import "sync" | ||||
|  | ||||
| type Config struct { | ||||
| 	OcCatalogUrl string | ||||
| } | ||||
|  | ||||
| var instance *Config | ||||
| var once sync.Once | ||||
|  | ||||
| func GetConfig() *Config { | ||||
| 	once.Do(func() { | ||||
| 		instance = &Config{} | ||||
| 	}) | ||||
| 	return instance | ||||
| } | ||||
		Reference in New Issue
	
	Block a user