Officiellement migrer à /v5 #15

Merged
vlbeaudoin merged 5 commits from bump/v5 into main 2023-06-02 16:40:45 -04:00
Showing only changes of commit 883edccf87 - Show all commits

View file

@ -27,14 +27,6 @@ var apiCmd = &cobra.Command{
apiKey = viper.GetString("api.key")
apiPort = viper.GetInt("api.port")
connection := data.PostgresConnection{
User: viper.GetString("db.user"),
Password: viper.GetString("db.password"),
Host: viper.GetString("db.host"),
Database: viper.GetString("db.database"),
Port: viper.GetInt("db.port"),
}
e := echo.New()
// Middlewares
@ -63,7 +55,7 @@ var apiCmd = &cobra.Command{
// Execution
client, err := data.NewDataClient(connection)
client, err := data.NewDataClientFromViper()
if err != nil {
log.Fatalf("Could not establish database connection.\n Error: %s\n", err)
}