// InitServiceDiscovery initializes all components required for service discovery to work
InitServiceDiscovery initializes all components required for service discovery to work
// InitServiceDiscovery initializes all components required for service discovery to work
func InitServiceDiscovery() {
	if config.GApiConfiguration.ServiceDiscovery.Type == "mongo" || config.GApiConfiguration.ServiceDiscovery.Type == "oracle" {
		database.SD_TYPE = config.GApiConfiguration.ServiceDiscovery.Type
		if !database.IsConnectionDone {
			if err := database.InitDatabaseConnection(); err != nil {
				panic(err.Error())
			}
		}
	}
}
func InitServiceDiscovery ( ) { if config . GApiConfiguration . ServiceDiscovery . Type == " " || config . GApiConfiguration . ServiceDiscovery . Type == " " { database . SD_TYPE = config . GApiConfiguration . ServiceDiscovery . Type if ! database . IsConnectionDone { if err := database . InitDatabaseConnection ( ) ; err != nil { panic ( err . Error ( ) ) } } } }
InitServiceDiscovery initializes all components required for service discovery to work
InitServiceDiscovery initializes all components required for service discovery to work