From 4059e934720bff527c514c28f8c0ec0f6dcdaec0 Mon Sep 17 00:00:00 2001 From: tgs266 <siegel.tucker@gmail.com> Date: Wed, 29 Sep 2021 15:17:33 -0400 Subject: [PATCH] change url --- README.md | 2 +- controllers/data_download_controller.go | 4 ++-- controllers/freezing_dates_controller.go | 4 ++-- controllers/gdd_controller.go | 4 ++-- controllers/misc_controller.go | 10 +++++----- controllers/nomads_controller.go | 4 ++-- controllers/seed_controllers.go | 4 ++-- go.mod | 2 +- main.go | 8 ++++---- models/confidence_interval.go | 6 +++--- models/csv.go | 2 +- models/enums/product_type.go | 2 +- models/freezing_dates.go | 4 ++-- models/gdd.go | 4 ++-- models/seeds.go | 2 +- persistence/mongodb.go | 6 +++--- services/confidence_interval_service.go | 8 ++++---- services/data_download_service.go | 10 +++++----- services/freezing_date_service.go | 8 ++++---- services/gdd_service.go | 10 +++++----- services/nomads_service.go | 8 ++++---- services/seed_service.go | 10 +++++----- utils/gdd_calculations.go | 2 +- utils/gdd_calculations_test.go | 2 +- 24 files changed, 63 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index dea6a34..577b6a6 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,4 @@ Swagger [Here](http://localhost:8080/api/weather/gdd-swagger/index.html#/) ## Docker -To build the image: `docker build -t dawn/gitlab.cs.umd.edu/dawn/dawn-weather .` \ No newline at end of file +To build the image: `docker build -t dawn/gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd .` \ No newline at end of file diff --git a/controllers/data_download_controller.go b/controllers/data_download_controller.go index ec261bb..59f50a9 100644 --- a/controllers/data_download_controller.go +++ b/controllers/data_download_controller.go @@ -2,8 +2,8 @@ package controllers import ( "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/services" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/services" "github.com/gofiber/fiber/v2" ) diff --git a/controllers/freezing_dates_controller.go b/controllers/freezing_dates_controller.go index 79a2132..404273f 100644 --- a/controllers/freezing_dates_controller.go +++ b/controllers/freezing_dates_controller.go @@ -1,8 +1,8 @@ package controllers import ( - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/services" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/services" "github.com/gofiber/fiber/v2" ) diff --git a/controllers/gdd_controller.go b/controllers/gdd_controller.go index 7d713d3..d7f5810 100644 --- a/controllers/gdd_controller.go +++ b/controllers/gdd_controller.go @@ -2,8 +2,8 @@ package controllers import ( "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/services" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/services" "github.com/gofiber/fiber/v2" ) diff --git a/controllers/misc_controller.go b/controllers/misc_controller.go index 05b8aab..4805b82 100644 --- a/controllers/misc_controller.go +++ b/controllers/misc_controller.go @@ -3,11 +3,11 @@ package controllers import ( "strconv" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" - "gitlab.cs.umd.edu/dawn/dawn-weather/services" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/services" "github.com/gofiber/fiber/v2" ) diff --git a/controllers/nomads_controller.go b/controllers/nomads_controller.go index 71ee93a..45ce1e4 100644 --- a/controllers/nomads_controller.go +++ b/controllers/nomads_controller.go @@ -1,8 +1,8 @@ package controllers import ( - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/services" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/services" "github.com/gofiber/fiber/v2" ) diff --git a/controllers/seed_controllers.go b/controllers/seed_controllers.go index da9dcad..9e5ff9a 100644 --- a/controllers/seed_controllers.go +++ b/controllers/seed_controllers.go @@ -2,8 +2,8 @@ package controllers import ( "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/services" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/services" "github.com/gofiber/fiber/v2" ) diff --git a/go.mod b/go.mod index e8b9778..82f27ed 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.cs.umd.edu/dawn/dawn-weather +module gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd go 1.16 diff --git a/main.go b/main.go index 9030d5e..4d2db00 100644 --- a/main.go +++ b/main.go @@ -5,9 +5,9 @@ import ( "strconv" "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/controllers" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/controllers" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" "github.com/ansrivas/fiberprometheus/v2" swagger "github.com/arsmn/fiber-swagger/v2" @@ -17,7 +17,7 @@ import ( "github.com/gofiber/fiber/v2/utils" "github.com/spf13/viper" - _ "gitlab.cs.umd.edu/dawn/dawn-weather/docs" + _ "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/docs" ) func registerRoutes(app *fiber.App) { diff --git a/models/confidence_interval.go b/models/confidence_interval.go index 379ec7e..3d68d46 100644 --- a/models/confidence_interval.go +++ b/models/confidence_interval.go @@ -4,9 +4,9 @@ import ( "errors" "strconv" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" validation "github.com/go-ozzo/ozzo-validation" "github.com/gofiber/fiber/v2" diff --git a/models/csv.go b/models/csv.go index b1cb1b1..a287e62 100644 --- a/models/csv.go +++ b/models/csv.go @@ -4,7 +4,7 @@ import ( "strconv" "time" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" validation "github.com/go-ozzo/ozzo-validation" "github.com/gofiber/fiber/v2" diff --git a/models/enums/product_type.go b/models/enums/product_type.go index d7b492c..ac6fe42 100644 --- a/models/enums/product_type.go +++ b/models/enums/product_type.go @@ -3,7 +3,7 @@ package enums import ( "strings" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" ) type Product struct { diff --git a/models/freezing_dates.go b/models/freezing_dates.go index f8d3991..87e38f4 100644 --- a/models/freezing_dates.go +++ b/models/freezing_dates.go @@ -4,8 +4,8 @@ import ( "strconv" "time" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" validation "github.com/go-ozzo/ozzo-validation" "github.com/gofiber/fiber/v2" diff --git a/models/gdd.go b/models/gdd.go index 53031bf..91755d9 100644 --- a/models/gdd.go +++ b/models/gdd.go @@ -4,8 +4,8 @@ import ( "strconv" "time" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" validation "github.com/go-ozzo/ozzo-validation" "github.com/gofiber/fiber/v2" diff --git a/models/seeds.go b/models/seeds.go index fe51e7c..3c87ed4 100644 --- a/models/seeds.go +++ b/models/seeds.go @@ -4,7 +4,7 @@ import ( "strconv" "time" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" validation "github.com/go-ozzo/ozzo-validation" "github.com/gofiber/fiber/v2" diff --git a/persistence/mongodb.go b/persistence/mongodb.go index 792b9cb..3eb8b9c 100644 --- a/persistence/mongodb.go +++ b/persistence/mongodb.go @@ -5,9 +5,9 @@ import ( "strings" "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" "github.com/bradfitz/slice" "github.com/spf13/viper" diff --git a/services/confidence_interval_service.go b/services/confidence_interval_service.go index 8e41b76..90a53c9 100644 --- a/services/confidence_interval_service.go +++ b/services/confidence_interval_service.go @@ -4,10 +4,10 @@ import ( "math" "time" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" - "gitlab.cs.umd.edu/dawn/dawn-weather/utils" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/utils" ) func GetConfidenceInterval(request models.ConfidenceIntervalRequest) models.ConfidenceIntervalResposne { diff --git a/services/data_download_service.go b/services/data_download_service.go index dd3282f..fa015ba 100644 --- a/services/data_download_service.go +++ b/services/data_download_service.go @@ -12,11 +12,11 @@ import ( "time" "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" "github.com/gofiber/fiber/v2" "github.com/google/uuid" diff --git a/services/freezing_date_service.go b/services/freezing_date_service.go index 2790df6..7905074 100644 --- a/services/freezing_date_service.go +++ b/services/freezing_date_service.go @@ -4,10 +4,10 @@ import ( "fmt" "time" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" ) var may31st = 150 diff --git a/services/gdd_service.go b/services/gdd_service.go index aa555ed..00be8ad 100644 --- a/services/gdd_service.go +++ b/services/gdd_service.go @@ -4,11 +4,11 @@ import ( "time" "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence/entities" - "gitlab.cs.umd.edu/dawn/dawn-weather/utils" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence/entities" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/utils" ) func GetFullYearGddValues(ctx common.DawnCtx, request models.GddRequest) models.GddResponse { diff --git a/services/nomads_service.go b/services/nomads_service.go index 00ad5b3..32913b4 100644 --- a/services/nomads_service.go +++ b/services/nomads_service.go @@ -3,10 +3,10 @@ package services import ( "math" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" - "gitlab.cs.umd.edu/dawn/dawn-weather/utils" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/utils" ) func GetGefsGddValues(request models.GddRequest) models.GefsGddResponse { diff --git a/services/seed_service.go b/services/seed_service.go index 0326b7a..4d57c7c 100644 --- a/services/seed_service.go +++ b/services/seed_service.go @@ -5,11 +5,11 @@ import ( "time" "gitlab.cs.umd.edu/dawn/dawn-go-common/common" - "gitlab.cs.umd.edu/dawn/dawn-weather/config" - "gitlab.cs.umd.edu/dawn/dawn-weather/models" - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" - "gitlab.cs.umd.edu/dawn/dawn-weather/persistence" - "gitlab.cs.umd.edu/dawn/dawn-weather/utils" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/config" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/persistence" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/utils" "github.com/gofiber/fiber/v2" ) diff --git a/utils/gdd_calculations.go b/utils/gdd_calculations.go index a38251b..f1dcef0 100644 --- a/utils/gdd_calculations.go +++ b/utils/gdd_calculations.go @@ -1,7 +1,7 @@ package utils import ( - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" ) func CalculateSingleGdd(minTemp float64, maxTemp float64, product enums.Product) float64 { diff --git a/utils/gdd_calculations_test.go b/utils/gdd_calculations_test.go index 63af834..1c06303 100644 --- a/utils/gdd_calculations_test.go +++ b/utils/gdd_calculations_test.go @@ -3,7 +3,7 @@ package utils import ( "testing" - "gitlab.cs.umd.edu/dawn/dawn-weather/models/enums" + "gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/models/enums" "github.com/stretchr/testify/assert" ) -- GitLab