// InitializeStorage initializes the backing storage for persisting records
InitializeStorage initializes the backing storage for persisting records
// InitializeStorage initializes the backing storage for persisting records
func InitializeStorage() storage.BackingStore {
	databaseHost := settings.GetDatabaseHost()
	var backingStore storage.BackingStore
	if "" != databaseHost {
		log.Println("Using Postgres SQL for Record Persistence.")
		backingStore = storage.NewPostgresStore(databaseHost)
	} else {
		log.Println("Using In-Memory Storage for Record Persistence.")
		backingStore = storage.NewMemoryStore()
	}
	backingStore.Init()
	return backingStore
}
func InitializeStorage ( ) storage . BackingStore { databaseHost := settings . GetDatabaseHost ( ) var backingStore storage . BackingStore if " " != databaseHost { log . Println ( " " ) backingStore = storage . NewPostgresStore ( databaseHost ) } else { log . Println ( " " ) backingStore = storage . NewMemoryStore ( ) } backingStore . Init ( ) return backingStore }
InitializeStorage initializes the backing storage for persisting records
InitializeStorage initializes the backing storage for persisting records