From 15442b77ea8249542bfdaf24f4dcc243567d52af Mon Sep 17 00:00:00 2001 From: in-void Date: Mon, 30 Jan 2023 19:59:42 +0100 Subject: [PATCH] update module name --- cmd/api/main.go | 8 ++-- cmd/migrate/main.go | 4 +- cmd/websocket/main.go | 6 +-- config/config.go | 2 +- go.mod | 11 +---- go.sum | 48 ------------------- internal/api/app.go | 18 +++---- ..._extension_2fa_request_mysql_repository.go | 2 +- ...wser_extension_devices_mysql_repository.go | 2 +- .../browser_extension_mysql_repository.go | 2 +- internal/api/browser_extension/app/app.go | 4 +- .../app/command/close_2fa_request.go | 2 +- .../app/command/register_browser_extension.go | 2 +- .../remove_all_extension_paired_devices.go | 2 +- .../command/remove_extension_paired_device.go | 2 +- .../app/command/request_2fa_token.go | 6 +-- .../app/command/store_log_event.go | 4 +- .../app/command/update_browser_extension.go | 2 +- .../browser_extension_2fa_requests_query.go | 2 +- .../app/security/middleware.go | 4 +- internal/api/browser_extension/ports/http.go | 14 +++--- .../api/browser_extension/service/service.go | 26 +++++----- internal/api/health/ports/http.go | 12 ++--- internal/api/health/service/service.go | 6 +-- .../icons_collection_gorm_repository.go | 2 +- ...s_collections_relations_gorm_repository.go | 2 +- .../icons/adapters/icons_gorm_repository.go | 2 +- .../icons_relations_gorm_repository.go | 2 +- .../icons_requests_gorm_repository.go | 2 +- .../mobile_web_services_gorm_repository.go | 2 +- internal/api/icons/app/app.go | 4 +- internal/api/icons/app/command/icons.go | 4 +- .../api/icons/app/command/icons_collection.go | 2 +- .../api/icons/app/command/icons_requests.go | 6 +-- internal/api/icons/app/command/web_service.go | 2 +- internal/api/icons/app/queries/icon.go | 2 +- .../api/icons/app/queries/icon_request.go | 2 +- .../api/icons/app/queries/icons_collection.go | 2 +- internal/api/icons/app/queries/web_service.go | 2 +- internal/api/icons/ports/http.go | 14 +++--- internal/api/icons/service/service.go | 20 ++++---- .../mobile_application_extensions_storage.go | 2 +- ...obile_device_extensions_gorm_repository.go | 2 +- .../adapters/mobile_device_gorm_repository.go | 2 +- .../mobile_notifications_gorm_repository.go | 2 +- internal/api/mobile/app/app.go | 4 +- .../command/create_whatsnew_notification.go | 2 +- .../command/delete_whatsnew_notification.go | 2 +- .../app/command/pair_mobile_with_extension.go | 8 ++-- .../command/publish_whatsnew_notification.go | 2 +- .../app/command/register_mobile_device.go | 2 +- .../app/command/remove_device_extension.go | 2 +- .../api/mobile/app/command/send_2fa_token.go | 8 ++-- .../app/command/update_mobile_device.go | 2 +- .../command/update_whatsnew_notification.go | 2 +- .../device_browser_extensions_2fa_requests.go | 2 +- .../app/queries/whatsnew_notification.go | 2 +- .../api/mobile/app/security/middleware.go | 4 +- .../mobile/domain/device_browser_extension.go | 2 +- internal/api/mobile/domain/mobile_config.go | 4 +- internal/api/mobile/ports/http.go | 16 +++---- internal/api/mobile/service/service.go | 28 +++++------ internal/api/mobile/service/validation.go | 2 +- .../debug_logs_audit_gorm_repository.go | 2 +- internal/api/support/app/app.go | 4 +- .../app/command/create_debug_log_audit.go | 8 ++-- .../command/create_debug_log_audit_claim.go | 4 +- .../app/command/delete_debug_logs_audit.go | 2 +- .../app/command/update_debug_log_audit.go | 2 +- .../support/app/queries/debug_logs_audit.go | 2 +- internal/api/support/ports/http.go | 14 +++--- internal/api/support/service/service.go | 24 +++++----- internal/common/aws/s3.go | 2 +- internal/common/db/db.go | 2 +- internal/common/db/gorm.go | 2 +- internal/common/http/client.go | 2 +- internal/common/http/log.go | 2 +- internal/common/http/request.go | 2 +- internal/common/http/security.go | 6 +-- internal/common/push/client.go | 4 +- internal/common/security/middleware.go | 4 +- internal/common/security/middleware_test.go | 4 +- .../websocket/gorilla_websocket_client.go | 4 +- internal/websocket/app.go | 6 +-- .../websocket/browser_extension/service.go | 2 +- internal/websocket/common/client.go | 2 +- internal/websocket/common/handler.go | 2 +- .../browser_extension_2fa_request_test.go | 2 +- .../browser_extension_2fa_test.go | 2 +- .../browser_extension_log_test.go | 2 +- .../browser_extension_pairing_test.go | 2 +- .../browser_extension_test.go | 2 +- tests/helpers.go | 2 +- tests/icons/icons_collection_test.go | 2 +- tests/icons/icons_requests_test.go | 4 +- tests/icons/icons_test.go | 4 +- tests/icons/web_services_dump_test.go | 2 +- tests/icons/web_services_test.go | 4 +- ...le_browser_extensions_2fa_requests_test.go | 2 +- tests/mobile/mobile_device_extension_test.go | 2 +- tests/mobile/mobile_notifications_test.go | 4 +- tests/mobile/mobile_security_test.go | 2 +- tests/support/mobile_debug_logs_test.go | 4 +- tests/system/api_test.go | 2 +- 104 files changed, 230 insertions(+), 287 deletions(-) diff --git a/cmd/api/main.go b/cmd/api/main.go index b518345..00fa725 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -1,11 +1,11 @@ package main import ( - "github.com/2fas/api/config" - "github.com/2fas/api/internal/api" - "github.com/2fas/api/internal/common/http" - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/api" + "github.com/twofas/2fas-server/internal/common/http" + "github.com/twofas/2fas-server/internal/common/logging" ) func main() { diff --git a/cmd/migrate/main.go b/cmd/migrate/main.go index 87635f4..d464d86 100644 --- a/cmd/migrate/main.go +++ b/cmd/migrate/main.go @@ -3,8 +3,8 @@ package main import ( "flag" "fmt" - "github.com/2fas/api/config" - "github.com/2fas/api/internal/common/db" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/common/db" "log" "os" diff --git a/cmd/websocket/main.go b/cmd/websocket/main.go index bca73bc..82e92f8 100644 --- a/cmd/websocket/main.go +++ b/cmd/websocket/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/2fas/api/config" - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/websocket" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/websocket" ) func main() { diff --git a/config/config.go b/config/config.go index 519811f..17ae31d 100644 --- a/config/config.go +++ b/config/config.go @@ -1,8 +1,8 @@ package config import ( - "github.com/2fas/api/internal/common/logging" "github.com/spf13/viper" + "github.com/twofas/2fas-server/internal/common/logging" "os" "strings" ) diff --git a/go.mod b/go.mod index f9ab1bf..a60b042 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/2fas/api +module github.com/twofas/2fas-server go 1.15 @@ -11,26 +11,17 @@ require ( github.com/go-playground/validator/v10 v10.8.0 github.com/go-redis/redis/v8 v8.11.5 github.com/go-sql-driver/mysql v1.6.0 - github.com/golang/protobuf v1.5.2 // indirect - github.com/google/go-querystring v1.1.0 github.com/google/uuid v1.3.0 github.com/gorilla/websocket v1.4.2 github.com/jaswdr/faker v1.15.0 - github.com/json-iterator/go v1.1.11 // indirect - github.com/kelseyhightower/envconfig v1.4.0 // indirect github.com/mattn/go-isatty v0.0.13 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.1 // indirect github.com/pkg/errors v0.9.1 - github.com/pquerna/otp v1.3.0 github.com/pressly/goose v2.7.0+incompatible github.com/sirupsen/logrus v1.8.1 github.com/spf13/viper v1.9.0 github.com/stretchr/testify v1.7.0 - github.com/ugorji/go v1.2.6 // indirect google.golang.org/api v0.56.0 - google.golang.org/protobuf v1.27.1 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect gorm.io/datatypes v1.0.7 gorm.io/driver/mysql v1.3.2 gorm.io/gorm v1.23.6 diff --git a/go.sum b/go.sum index fc9ea7f..61c8bb4 100644 --- a/go.sum +++ b/go.sum @@ -45,7 +45,6 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX cloud.google.com/go/storage v1.10.0 h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -firebase.google.com/go v1.0.2 h1:MCEmjmlwZiQ0s+z7EDVX6e3KHHvpGdF2pJBiQAXVXao= firebase.google.com/go v3.13.0+incompatible h1:3TdYC3DDi6aHn20qoRkxwGqNgdjtblwVAyRLQwGn/+4= firebase.google.com/go v3.13.0+incompatible/go.mod h1:xlah6XbEyW6tbfSklcfe5FHJIwjt8toICdV5Wh9ptHs= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= @@ -66,8 +65,6 @@ github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgI github.com/aws/aws-sdk-go v1.42.9 h1:8ptAGgA+uC2TUbdvUeOVSfBocIZvGE2NKiLxkAcn1GA= github.com/aws/aws-sdk-go v1.42.9/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc h1:biVzkmvwrH8WK8raXaxBx6fRVTlJILwEwQGL1I/ByEI= -github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= @@ -97,8 +94,6 @@ github.com/denisenkom/go-mssqldb v0.12.0/go.mod h1:iiK0YP1ZeepvmBQk/QpLEhhTNJgfz github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/doug-martin/goqu v1.0.0 h1:5qQwMzItVsRGYf/3GdAWhb1s0KE5YBaTq9phYI2JUGQ= -github.com/doug-martin/goqu v5.0.0+incompatible h1:C7O6xQYoWpSGX32C1faMJWe1s82Ktr2jjWf2joReiSQ= github.com/doug-martin/goqu/v9 v9.18.0 h1:/6bcuEtAe6nsSMVK/M+fOiXUNfyFF3yYtE07DBPFMYY= github.com/doug-martin/goqu/v9 v9.18.0/go.mod h1:nf0Wc2/hV3gYK9LiyqIrzBEVGlI8qW3GuDCEobC4wBQ= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -136,11 +131,9 @@ github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTM github.com/go-playground/universal-translator v0.16.0/go.mod h1:1AnU7NaIRDWWzGEKwgtJRd2xk99HeFyHw3yid4rvQIY= github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= github.com/go-playground/validator/v10 v10.8.0 h1:1kAa0fCrnpv+QYdkdcRzrRM7AyYs5o8+jZdJCz9xj6k= github.com/go-playground/validator/v10 v10.8.0/go.mod h1:9JhgTzTaE31GZDpH/HSvHiRJrJ3iKAgqqH0Bl/Ocjdk= -github.com/go-redis/redis v6.15.9+incompatible h1:K0pv1D7EQUjfyoMql+r/jZqCLizCGKFlFgcHWWmHQjg= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= @@ -173,7 +166,6 @@ github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+Licev github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= @@ -203,12 +195,9 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= -github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= @@ -320,8 +309,6 @@ github.com/jaswdr/faker v1.15.0 h1:wcEVaPKFE53NvdT4fl+w3b0IXdefp1Yk0BdBs0APCoA= github.com/jaswdr/faker v1.15.0/go.mod h1:x7ZlyB1AZqwqKZgyQlnqEG8FDptmHlncA5u2zY/yi6w= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= -github.com/jinzhu/now v1.1.2 h1:eVKgfIdy9b6zbWBMgFpfDPoAMifwSZagU9HmEU6zgiI= -github.com/jinzhu/now v1.1.2/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/jinzhu/now v1.1.4/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= @@ -330,14 +317,11 @@ github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHW github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11 h1:uVUAXhF2To8cbw/3xN3pxj6kk7TYKs98NIrTqPlMWAQ= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= -github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -351,14 +335,12 @@ github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw= -github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.10.1 h1:6VXZrLU0jHBYyAqrSPa+MgPfnSvTPuMgK+k0o5kVFWo= github.com/lib/pq v1.10.1/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8= github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= @@ -375,11 +357,9 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= -github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.13 h1:qdl+GuBjcsKKDco5BsxPJlId98mSWNKqYA+Co0SC1yA= github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-sqlite3 v1.14.7 h1:fxWBnXkxfM6sRiuH3bqJ4CfzZojMOLVc0UTsTglEghA= github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-sqlite3 v1.14.12 h1:TJ1bhYJPV44phC+IMu1u2K/i5RriLTPe+yc68XDJ1Z0= @@ -393,11 +373,9 @@ github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:F github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.4.2 h1:6h7AQ0yhTcIsmFmnAwQls75jp2Gzs4iB8W7pjMO+rqo= github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= @@ -429,8 +407,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/pquerna/otp v1.3.0 h1:oJV/SkzR33anKXwQU3Of42rL4wbrffP4uvUf1SvS5Xs= -github.com/pquerna/otp v1.3.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= github.com/pressly/goose v2.7.0+incompatible h1:PWejVEv07LCerQEzMMeAtjuyCKbyprZ/LBa6K5P0OCQ= github.com/pressly/goose v2.7.0+incompatible/go.mod h1:m+QHWCqxR3k8D9l7qfzuC/djtlfzxr34mozWDYEu1z8= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -461,7 +437,6 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.9.0 h1:yR6EXjTp0y0cLN8OZg1CRZmOBdI88UcGkhgyJhu6nZk= github.com/spf13/viper v1.9.0/go.mod h1:+i6ajR7OX2XaiBkrcZJFK21htRk7eDeLg7+O6bhUPP4= -github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= @@ -470,7 +445,6 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= @@ -478,12 +452,8 @@ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go v1.2.6 h1:tGiWC9HENWE2tqYycIqFTNorMmFRVhNwCpDOpWqnk8E= -github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0= github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ= -github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -525,14 +495,11 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE= @@ -614,7 +581,6 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q= golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -673,7 +639,6 @@ golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -707,10 +672,8 @@ golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf h1:2ucpDCmfkl8Bd/FsLtiD653Wf96cW37s+iGx93zsu4k= golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -723,7 +686,6 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= @@ -794,7 +756,6 @@ golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -925,11 +886,9 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= @@ -946,19 +905,15 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gorm.io/datatypes v1.0.7 h1:8NhJN4+annFjwV1WufDhFiPjdUvV1lSGUdg1UCjQIWY= gorm.io/datatypes v1.0.7/go.mod h1:l9qkCuy0CdzDEop9HKUdcnC9gHC2sRlaFtHkTzsZRqg= -gorm.io/driver/mysql v1.1.2 h1:OofcyE2lga734MxwcCW9uB4mWNXMr50uaGRVwQL2B0M= -gorm.io/driver/mysql v1.1.2/go.mod h1:4P/X9vSc3WTrhTLZ259cpFd6xKNYiSSdSZngkSBGIMM= gorm.io/driver/mysql v1.3.2 h1:QJryWiqQ91EvZ0jZL48NOpdlPdMjdip1hQ8bTgo4H7I= gorm.io/driver/mysql v1.3.2/go.mod h1:ChK6AHbHgDCFZyJp0F+BmVGb06PSIoh9uVYKAlRbb2U= gorm.io/driver/postgres v1.3.4 h1:evZ7plF+Bp+Lr1mO5NdPvd6M/N98XtwHixGB+y7fdEQ= @@ -967,9 +922,6 @@ gorm.io/driver/sqlite v1.3.1 h1:bwfE+zTEWklBYoEodIOIBwuWHpnx52Z9zJFW5F33WLk= gorm.io/driver/sqlite v1.3.1/go.mod h1:wJx0hJspfycZ6myN38x1O/AqLtNS6c5o9TndewFbELg= gorm.io/driver/sqlserver v1.3.1 h1:F5t6ScMzOgy1zukRTIZgLZwKahgt3q1woAILVolKpOI= gorm.io/driver/sqlserver v1.3.1/go.mod h1:w25Vrx2BG+CJNUu/xKbFhaKlGxT/nzRkhWCCoptX8tQ= -gorm.io/gorm v1.21.12/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= -gorm.io/gorm v1.21.15 h1:gAyaDoPw0lCyrSFWhBlahbUA1U4P5RViC1uIqoB+1Rk= -gorm.io/gorm v1.21.15/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= gorm.io/gorm v1.23.1/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk= gorm.io/gorm v1.23.6 h1:KFLdNgri4ExFFGTRGGFWON2P1ZN28+9SJRN8voOoYe0= gorm.io/gorm v1.23.6/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk= diff --git a/internal/api/app.go b/internal/api/app.go index 32be1d0..e86e2d4 100644 --- a/internal/api/app.go +++ b/internal/api/app.go @@ -2,17 +2,17 @@ package api import ( "errors" - "github.com/2fas/api/config" - extension "github.com/2fas/api/internal/api/browser_extension/service" - health "github.com/2fas/api/internal/api/health/service" - icons "github.com/2fas/api/internal/api/icons/service" - mobile "github.com/2fas/api/internal/api/mobile/service" - support "github.com/2fas/api/internal/api/support/service" - "github.com/2fas/api/internal/common/api" - "github.com/2fas/api/internal/common/db" - "github.com/2fas/api/internal/common/redis" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" + "github.com/twofas/2fas-server/config" + extension "github.com/twofas/2fas-server/internal/api/browser_extension/service" + health "github.com/twofas/2fas-server/internal/api/health/service" + icons "github.com/twofas/2fas-server/internal/api/icons/service" + mobile "github.com/twofas/2fas-server/internal/api/mobile/service" + support "github.com/twofas/2fas-server/internal/api/support/service" + "github.com/twofas/2fas-server/internal/common/api" + "github.com/twofas/2fas-server/internal/common/db" + "github.com/twofas/2fas-server/internal/common/redis" ) var validate *validator.Validate diff --git a/internal/api/browser_extension/adapters/browser_extension_2fa_request_mysql_repository.go b/internal/api/browser_extension/adapters/browser_extension_2fa_request_mysql_repository.go index 9718c8e..4a37d96 100644 --- a/internal/api/browser_extension/adapters/browser_extension_2fa_request_mysql_repository.go +++ b/internal/api/browser_extension/adapters/browser_extension_2fa_request_mysql_repository.go @@ -2,9 +2,9 @@ package adapters import ( "fmt" - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/google/uuid" "github.com/pkg/errors" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" "gorm.io/gorm" ) diff --git a/internal/api/browser_extension/adapters/browser_extension_devices_mysql_repository.go b/internal/api/browser_extension/adapters/browser_extension_devices_mysql_repository.go index 5d63720..238da80 100644 --- a/internal/api/browser_extension/adapters/browser_extension_devices_mysql_repository.go +++ b/internal/api/browser_extension/adapters/browser_extension_devices_mysql_repository.go @@ -2,10 +2,10 @@ package adapters import ( "fmt" - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" "github.com/pkg/errors" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" "gorm.io/gorm" ) diff --git a/internal/api/browser_extension/adapters/browser_extension_mysql_repository.go b/internal/api/browser_extension/adapters/browser_extension_mysql_repository.go index 5c71089..b083d26 100644 --- a/internal/api/browser_extension/adapters/browser_extension_mysql_repository.go +++ b/internal/api/browser_extension/adapters/browser_extension_mysql_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" "gorm.io/gorm" ) diff --git a/internal/api/browser_extension/app/app.go b/internal/api/browser_extension/app/app.go index c4aa716..bad98b1 100644 --- a/internal/api/browser_extension/app/app.go +++ b/internal/api/browser_extension/app/app.go @@ -1,8 +1,8 @@ package app import ( - "github.com/2fas/api/internal/api/browser_extension/app/command" - "github.com/2fas/api/internal/api/browser_extension/app/query" + "github.com/twofas/2fas-server/internal/api/browser_extension/app/command" + "github.com/twofas/2fas-server/internal/api/browser_extension/app/query" ) type Commands struct { diff --git a/internal/api/browser_extension/app/command/close_2fa_request.go b/internal/api/browser_extension/app/command/close_2fa_request.go index 1cf45c8..59e7069 100644 --- a/internal/api/browser_extension/app/command/close_2fa_request.go +++ b/internal/api/browser_extension/app/command/close_2fa_request.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" ) type Close2FaRequest struct { diff --git a/internal/api/browser_extension/app/command/register_browser_extension.go b/internal/api/browser_extension/app/command/register_browser_extension.go index 9dc74b6..3e54db1 100644 --- a/internal/api/browser_extension/app/command/register_browser_extension.go +++ b/internal/api/browser_extension/app/command/register_browser_extension.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" ) type RegisterBrowserExtension struct { diff --git a/internal/api/browser_extension/app/command/remove_all_extension_paired_devices.go b/internal/api/browser_extension/app/command/remove_all_extension_paired_devices.go index 5401199..bc6f46b 100644 --- a/internal/api/browser_extension/app/command/remove_all_extension_paired_devices.go +++ b/internal/api/browser_extension/app/command/remove_all_extension_paired_devices.go @@ -1,9 +1,9 @@ package command import ( - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" "gorm.io/gorm" ) diff --git a/internal/api/browser_extension/app/command/remove_extension_paired_device.go b/internal/api/browser_extension/app/command/remove_extension_paired_device.go index 65b898c..d3831a3 100644 --- a/internal/api/browser_extension/app/command/remove_extension_paired_device.go +++ b/internal/api/browser_extension/app/command/remove_extension_paired_device.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" ) type RemoveExtensionPairedDevice struct { diff --git a/internal/api/browser_extension/app/command/request_2fa_token.go b/internal/api/browser_extension/app/command/request_2fa_token.go index 142e0a6..a5e77a7 100644 --- a/internal/api/browser_extension/app/command/request_2fa_token.go +++ b/internal/api/browser_extension/app/command/request_2fa_token.go @@ -4,11 +4,11 @@ import ( "context" "firebase.google.com/go/messaging" "fmt" - "github.com/2fas/api/internal/api/browser_extension/domain" - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/common/push" "github.com/gin-gonic/gin" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/push" "net/url" "time" ) diff --git a/internal/api/browser_extension/app/command/store_log_event.go b/internal/api/browser_extension/app/command/store_log_event.go index f41b05c..ac3f9b6 100644 --- a/internal/api/browser_extension/app/command/store_log_event.go +++ b/internal/api/browser_extension/app/command/store_log_event.go @@ -2,9 +2,9 @@ package command import ( "encoding/json" - "github.com/2fas/api/internal/api/browser_extension/domain" - "github.com/2fas/api/internal/common/logging" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" + "github.com/twofas/2fas-server/internal/common/logging" ) type StoreLogEvent struct { diff --git a/internal/api/browser_extension/app/command/update_browser_extension.go b/internal/api/browser_extension/app/command/update_browser_extension.go index f783e64..3a485b2 100644 --- a/internal/api/browser_extension/app/command/update_browser_extension.go +++ b/internal/api/browser_extension/app/command/update_browser_extension.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" ) type UpdateBrowserExtension struct { diff --git a/internal/api/browser_extension/app/query/browser_extension_2fa_requests_query.go b/internal/api/browser_extension/app/query/browser_extension_2fa_requests_query.go index b20b4cb..4855b27 100644 --- a/internal/api/browser_extension/app/query/browser_extension_2fa_requests_query.go +++ b/internal/api/browser_extension/app/query/browser_extension_2fa_requests_query.go @@ -1,8 +1,8 @@ package query import ( - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" "gorm.io/gorm" ) diff --git a/internal/api/browser_extension/app/security/middleware.go b/internal/api/browser_extension/app/security/middleware.go index 84931fc..2f09b07 100644 --- a/internal/api/browser_extension/app/security/middleware.go +++ b/internal/api/browser_extension/app/security/middleware.go @@ -3,9 +3,9 @@ package security import ( "context" "fmt" - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/common/rate_limit" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/rate_limit" "time" ) diff --git a/internal/api/browser_extension/ports/http.go b/internal/api/browser_extension/ports/http.go index 93f4b3c..707032b 100644 --- a/internal/api/browser_extension/ports/http.go +++ b/internal/api/browser_extension/ports/http.go @@ -1,17 +1,17 @@ package ports import ( - "github.com/2fas/api/internal/api/browser_extension/adapters" - "github.com/2fas/api/internal/api/browser_extension/app" - "github.com/2fas/api/internal/api/browser_extension/app/command" - "github.com/2fas/api/internal/api/browser_extension/app/query" - "github.com/2fas/api/internal/api/browser_extension/domain" - "github.com/2fas/api/internal/common/api" - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "github.com/google/uuid" "github.com/pkg/errors" + "github.com/twofas/2fas-server/internal/api/browser_extension/adapters" + "github.com/twofas/2fas-server/internal/api/browser_extension/app" + "github.com/twofas/2fas-server/internal/api/browser_extension/app/command" + "github.com/twofas/2fas-server/internal/api/browser_extension/app/query" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" + "github.com/twofas/2fas-server/internal/common/api" + "github.com/twofas/2fas-server/internal/common/logging" "gorm.io/gorm" ) diff --git a/internal/api/browser_extension/service/service.go b/internal/api/browser_extension/service/service.go index 2e18975..7a6992c 100644 --- a/internal/api/browser_extension/service/service.go +++ b/internal/api/browser_extension/service/service.go @@ -2,21 +2,21 @@ package service import ( "database/sql" - "github.com/2fas/api/config" - "github.com/2fas/api/internal/api/browser_extension/adapters" - "github.com/2fas/api/internal/api/browser_extension/app" - "github.com/2fas/api/internal/api/browser_extension/app/command" - "github.com/2fas/api/internal/api/browser_extension/app/query" - apisec "github.com/2fas/api/internal/api/browser_extension/app/security" - "github.com/2fas/api/internal/api/browser_extension/ports" - "github.com/2fas/api/internal/api/mobile/domain" - "github.com/2fas/api/internal/common/aws" - "github.com/2fas/api/internal/common/db" - mobile "github.com/2fas/api/internal/common/push" - "github.com/2fas/api/internal/common/rate_limit" - "github.com/2fas/api/internal/common/security" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/api/browser_extension/adapters" + "github.com/twofas/2fas-server/internal/api/browser_extension/app" + "github.com/twofas/2fas-server/internal/api/browser_extension/app/command" + "github.com/twofas/2fas-server/internal/api/browser_extension/app/query" + apisec "github.com/twofas/2fas-server/internal/api/browser_extension/app/security" + "github.com/twofas/2fas-server/internal/api/browser_extension/ports" + "github.com/twofas/2fas-server/internal/api/mobile/domain" + "github.com/twofas/2fas-server/internal/common/aws" + "github.com/twofas/2fas-server/internal/common/db" + mobile "github.com/twofas/2fas-server/internal/common/push" + "github.com/twofas/2fas-server/internal/common/rate_limit" + "github.com/twofas/2fas-server/internal/common/security" "gorm.io/gorm" ) diff --git a/internal/api/health/ports/http.go b/internal/api/health/ports/http.go index 566019b..b828459 100644 --- a/internal/api/health/ports/http.go +++ b/internal/api/health/ports/http.go @@ -3,14 +3,14 @@ package ports import ( "context" "encoding/json" - "github.com/2fas/api/config" - mobile "github.com/2fas/api/internal/api/mobile/domain" - support "github.com/2fas/api/internal/api/support/domain" - "github.com/2fas/api/internal/common/aws" - "github.com/2fas/api/internal/common/clock" - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" + "github.com/twofas/2fas-server/config" + mobile "github.com/twofas/2fas-server/internal/api/mobile/domain" + support "github.com/twofas/2fas-server/internal/api/support/domain" + "github.com/twofas/2fas-server/internal/common/aws" + "github.com/twofas/2fas-server/internal/common/clock" + "github.com/twofas/2fas-server/internal/common/logging" "os" "time" ) diff --git a/internal/api/health/service/service.go b/internal/api/health/service/service.go index 5d37e78..f7a6f19 100644 --- a/internal/api/health/service/service.go +++ b/internal/api/health/service/service.go @@ -1,11 +1,11 @@ package service import ( - "github.com/2fas/api/config" - "github.com/2fas/api/internal/api/health/ports" - "github.com/2fas/api/internal/common/http" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/api/health/ports" + "github.com/twofas/2fas-server/internal/common/http" ) type HealthModule struct { diff --git a/internal/api/icons/adapters/icons_collection_gorm_repository.go b/internal/api/icons/adapters/icons_collection_gorm_repository.go index ffa02ac..ca19207 100644 --- a/internal/api/icons/adapters/icons_collection_gorm_repository.go +++ b/internal/api/icons/adapters/icons_collection_gorm_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/icons/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/gorm" ) diff --git a/internal/api/icons/adapters/icons_collections_relations_gorm_repository.go b/internal/api/icons/adapters/icons_collections_relations_gorm_repository.go index efe6b99..17a2783 100644 --- a/internal/api/icons/adapters/icons_collections_relations_gorm_repository.go +++ b/internal/api/icons/adapters/icons_collections_relations_gorm_repository.go @@ -2,7 +2,7 @@ package adapters import ( "fmt" - "github.com/2fas/api/internal/api/icons/domain" + "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/gorm" ) diff --git a/internal/api/icons/adapters/icons_gorm_repository.go b/internal/api/icons/adapters/icons_gorm_repository.go index 14f3f8b..04b71ba 100644 --- a/internal/api/icons/adapters/icons_gorm_repository.go +++ b/internal/api/icons/adapters/icons_gorm_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/icons/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/gorm" ) diff --git a/internal/api/icons/adapters/icons_relations_gorm_repository.go b/internal/api/icons/adapters/icons_relations_gorm_repository.go index 7a980dd..70dec89 100644 --- a/internal/api/icons/adapters/icons_relations_gorm_repository.go +++ b/internal/api/icons/adapters/icons_relations_gorm_repository.go @@ -2,7 +2,7 @@ package adapters import ( "fmt" - "github.com/2fas/api/internal/api/icons/domain" + "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/gorm" ) diff --git a/internal/api/icons/adapters/icons_requests_gorm_repository.go b/internal/api/icons/adapters/icons_requests_gorm_repository.go index 4d1066b..f1b396b 100644 --- a/internal/api/icons/adapters/icons_requests_gorm_repository.go +++ b/internal/api/icons/adapters/icons_requests_gorm_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/icons/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/gorm" ) diff --git a/internal/api/icons/adapters/mobile_web_services_gorm_repository.go b/internal/api/icons/adapters/mobile_web_services_gorm_repository.go index 893cca7..33c686b 100644 --- a/internal/api/icons/adapters/mobile_web_services_gorm_repository.go +++ b/internal/api/icons/adapters/mobile_web_services_gorm_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/icons/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/gorm" ) diff --git a/internal/api/icons/app/app.go b/internal/api/icons/app/app.go index 4ae663f..ddabb25 100644 --- a/internal/api/icons/app/app.go +++ b/internal/api/icons/app/app.go @@ -1,8 +1,8 @@ package app import ( - "github.com/2fas/api/internal/api/icons/app/command" - "github.com/2fas/api/internal/api/icons/app/queries" + "github.com/twofas/2fas-server/internal/api/icons/app/command" + "github.com/twofas/2fas-server/internal/api/icons/app/queries" ) type Commands struct { diff --git a/internal/api/icons/app/command/icons.go b/internal/api/icons/app/command/icons.go index 6126bfd..dfee8ed 100644 --- a/internal/api/icons/app/command/icons.go +++ b/internal/api/icons/app/command/icons.go @@ -4,11 +4,11 @@ import ( "bytes" "encoding/base64" "fmt" - "github.com/2fas/api/internal/api/icons/domain" - "github.com/2fas/api/internal/common/storage" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" "github.com/pkg/errors" + "github.com/twofas/2fas-server/internal/api/icons/domain" + "github.com/twofas/2fas-server/internal/common/storage" "gorm.io/gorm" "image" "image/png" diff --git a/internal/api/icons/app/command/icons_collection.go b/internal/api/icons/app/command/icons_collection.go index f3b728d..6383f76 100644 --- a/internal/api/icons/app/command/icons_collection.go +++ b/internal/api/icons/app/command/icons_collection.go @@ -2,9 +2,9 @@ package command import ( "encoding/json" - domain2 "github.com/2fas/api/internal/api/icons/domain" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + domain2 "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/datatypes" "gorm.io/gorm" ) diff --git a/internal/api/icons/app/command/icons_requests.go b/internal/api/icons/app/command/icons_requests.go index 31bf556..08c9375 100644 --- a/internal/api/icons/app/command/icons_requests.go +++ b/internal/api/icons/app/command/icons_requests.go @@ -2,11 +2,11 @@ package command import ( "encoding/json" - "github.com/2fas/api/internal/api/icons/domain" - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/common/storage" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/icons/domain" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/storage" "gorm.io/datatypes" "gorm.io/gorm" "image/png" diff --git a/internal/api/icons/app/command/web_service.go b/internal/api/icons/app/command/web_service.go index c226a2a..9d0c341 100644 --- a/internal/api/icons/app/command/web_service.go +++ b/internal/api/icons/app/command/web_service.go @@ -2,9 +2,9 @@ package command import ( "encoding/json" - "github.com/2fas/api/internal/api/icons/domain" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/icons/domain" "gorm.io/gorm" ) diff --git a/internal/api/icons/app/queries/icon.go b/internal/api/icons/app/queries/icon.go index 739f2fb..4537aeb 100644 --- a/internal/api/icons/app/queries/icon.go +++ b/internal/api/icons/app/queries/icon.go @@ -1,8 +1,8 @@ package queries import ( - "github.com/2fas/api/internal/api/icons/adapters" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/api/icons/adapters" "gorm.io/gorm" ) diff --git a/internal/api/icons/app/queries/icon_request.go b/internal/api/icons/app/queries/icon_request.go index 8697bff..a5a1f0d 100644 --- a/internal/api/icons/app/queries/icon_request.go +++ b/internal/api/icons/app/queries/icon_request.go @@ -1,8 +1,8 @@ package queries import ( - "github.com/2fas/api/internal/api/icons/adapters" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/api/icons/adapters" "gorm.io/datatypes" "gorm.io/gorm" ) diff --git a/internal/api/icons/app/queries/icons_collection.go b/internal/api/icons/app/queries/icons_collection.go index 585d410..98f0ce5 100644 --- a/internal/api/icons/app/queries/icons_collection.go +++ b/internal/api/icons/app/queries/icons_collection.go @@ -1,8 +1,8 @@ package queries import ( - "github.com/2fas/api/internal/api/icons/adapters" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/api/icons/adapters" "gorm.io/datatypes" "gorm.io/gorm" ) diff --git a/internal/api/icons/app/queries/web_service.go b/internal/api/icons/app/queries/web_service.go index 94dc7e0..2499b11 100644 --- a/internal/api/icons/app/queries/web_service.go +++ b/internal/api/icons/app/queries/web_service.go @@ -1,8 +1,8 @@ package queries import ( - "github.com/2fas/api/internal/api/icons/adapters" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/api/icons/adapters" "gorm.io/datatypes" "gorm.io/gorm" ) diff --git a/internal/api/icons/ports/http.go b/internal/api/icons/ports/http.go index 571be14..5b216a8 100644 --- a/internal/api/icons/ports/http.go +++ b/internal/api/icons/ports/http.go @@ -3,16 +3,16 @@ package ports import ( "errors" "fmt" - "github.com/2fas/api/internal/api/icons/adapters" - "github.com/2fas/api/internal/api/icons/app" - "github.com/2fas/api/internal/api/icons/app/command" - "github.com/2fas/api/internal/api/icons/app/queries" - "github.com/2fas/api/internal/api/icons/domain" - "github.com/2fas/api/internal/common/api" - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/icons/adapters" + "github.com/twofas/2fas-server/internal/api/icons/app" + "github.com/twofas/2fas-server/internal/api/icons/app/command" + "github.com/twofas/2fas-server/internal/api/icons/app/queries" + "github.com/twofas/2fas-server/internal/api/icons/domain" + "github.com/twofas/2fas-server/internal/common/api" + "github.com/twofas/2fas-server/internal/common/logging" ) type RoutesHandler struct { diff --git a/internal/api/icons/service/service.go b/internal/api/icons/service/service.go index ff11b46..dadcae3 100644 --- a/internal/api/icons/service/service.go +++ b/internal/api/icons/service/service.go @@ -2,18 +2,18 @@ package service import ( "database/sql" - "github.com/2fas/api/config" - "github.com/2fas/api/internal/api/icons/adapters" - "github.com/2fas/api/internal/api/icons/app" - "github.com/2fas/api/internal/api/icons/app/command" - "github.com/2fas/api/internal/api/icons/app/queries" - "github.com/2fas/api/internal/api/icons/ports" - "github.com/2fas/api/internal/common/aws" - "github.com/2fas/api/internal/common/db" - httpsec "github.com/2fas/api/internal/common/http" - "github.com/2fas/api/internal/common/storage" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/api/icons/adapters" + "github.com/twofas/2fas-server/internal/api/icons/app" + "github.com/twofas/2fas-server/internal/api/icons/app/command" + "github.com/twofas/2fas-server/internal/api/icons/app/queries" + "github.com/twofas/2fas-server/internal/api/icons/ports" + "github.com/twofas/2fas-server/internal/common/aws" + "github.com/twofas/2fas-server/internal/common/db" + httpsec "github.com/twofas/2fas-server/internal/common/http" + "github.com/twofas/2fas-server/internal/common/storage" "gorm.io/gorm" ) diff --git a/internal/api/mobile/adapters/mobile_application_extensions_storage.go b/internal/api/mobile/adapters/mobile_application_extensions_storage.go index fceb4d1..e0e72fe 100644 --- a/internal/api/mobile/adapters/mobile_application_extensions_storage.go +++ b/internal/api/mobile/adapters/mobile_application_extensions_storage.go @@ -1,9 +1,9 @@ package adapters import ( - "github.com/2fas/api/internal/common/clock" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/common/clock" "gorm.io/gorm" ) diff --git a/internal/api/mobile/adapters/mobile_device_extensions_gorm_repository.go b/internal/api/mobile/adapters/mobile_device_extensions_gorm_repository.go index 218ffcb..a99f0bf 100644 --- a/internal/api/mobile/adapters/mobile_device_extensions_gorm_repository.go +++ b/internal/api/mobile/adapters/mobile_device_extensions_gorm_repository.go @@ -3,9 +3,9 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/mobile/domain" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" "gorm.io/gorm" ) diff --git a/internal/api/mobile/adapters/mobile_device_gorm_repository.go b/internal/api/mobile/adapters/mobile_device_gorm_repository.go index 29eb9aa..197937b 100644 --- a/internal/api/mobile/adapters/mobile_device_gorm_repository.go +++ b/internal/api/mobile/adapters/mobile_device_gorm_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" "gorm.io/gorm" ) diff --git a/internal/api/mobile/adapters/mobile_notifications_gorm_repository.go b/internal/api/mobile/adapters/mobile_notifications_gorm_repository.go index 9515277..2837f58 100644 --- a/internal/api/mobile/adapters/mobile_notifications_gorm_repository.go +++ b/internal/api/mobile/adapters/mobile_notifications_gorm_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" "gorm.io/gorm" ) diff --git a/internal/api/mobile/app/app.go b/internal/api/mobile/app/app.go index 1787ce3..b35c23f 100644 --- a/internal/api/mobile/app/app.go +++ b/internal/api/mobile/app/app.go @@ -1,8 +1,8 @@ package app import ( - "github.com/2fas/api/internal/api/mobile/app/command" - "github.com/2fas/api/internal/api/mobile/app/queries" + "github.com/twofas/2fas-server/internal/api/mobile/app/command" + "github.com/twofas/2fas-server/internal/api/mobile/app/queries" ) type Commands struct { diff --git a/internal/api/mobile/app/command/create_whatsnew_notification.go b/internal/api/mobile/app/command/create_whatsnew_notification.go index d55779e..a538885 100644 --- a/internal/api/mobile/app/command/create_whatsnew_notification.go +++ b/internal/api/mobile/app/command/create_whatsnew_notification.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" ) type CreateNotification struct { diff --git a/internal/api/mobile/app/command/delete_whatsnew_notification.go b/internal/api/mobile/app/command/delete_whatsnew_notification.go index bd64ba3..951c8d0 100644 --- a/internal/api/mobile/app/command/delete_whatsnew_notification.go +++ b/internal/api/mobile/app/command/delete_whatsnew_notification.go @@ -1,9 +1,9 @@ package command import ( - "github.com/2fas/api/internal/api/mobile/domain" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" "gorm.io/gorm" ) diff --git a/internal/api/mobile/app/command/pair_mobile_with_extension.go b/internal/api/mobile/app/command/pair_mobile_with_extension.go index 82bb7c4..e8973f7 100644 --- a/internal/api/mobile/app/command/pair_mobile_with_extension.go +++ b/internal/api/mobile/app/command/pair_mobile_with_extension.go @@ -2,11 +2,11 @@ package command import ( "fmt" - "github.com/2fas/api/internal/api/browser_extension/domain" - "github.com/2fas/api/internal/api/mobile/adapters" - mobile_domain "github.com/2fas/api/internal/api/mobile/domain" - "github.com/2fas/api/internal/common/websocket" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" + "github.com/twofas/2fas-server/internal/api/mobile/adapters" + mobile_domain "github.com/twofas/2fas-server/internal/api/mobile/domain" + "github.com/twofas/2fas-server/internal/common/websocket" ) type BrowserExtensionHasBeenPairedWithDevice struct { diff --git a/internal/api/mobile/app/command/publish_whatsnew_notification.go b/internal/api/mobile/app/command/publish_whatsnew_notification.go index be9ca90..67b6228 100644 --- a/internal/api/mobile/app/command/publish_whatsnew_notification.go +++ b/internal/api/mobile/app/command/publish_whatsnew_notification.go @@ -2,8 +2,8 @@ package command import ( "database/sql" - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" "time" ) diff --git a/internal/api/mobile/app/command/register_mobile_device.go b/internal/api/mobile/app/command/register_mobile_device.go index cb53261..e73cea9 100644 --- a/internal/api/mobile/app/command/register_mobile_device.go +++ b/internal/api/mobile/app/command/register_mobile_device.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" ) type RegisterMobileDevice struct { diff --git a/internal/api/mobile/app/command/remove_device_extension.go b/internal/api/mobile/app/command/remove_device_extension.go index eee54b6..3b9a29a 100644 --- a/internal/api/mobile/app/command/remove_device_extension.go +++ b/internal/api/mobile/app/command/remove_device_extension.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" ) type RemoveDevicePairedExtension struct { diff --git a/internal/api/mobile/app/command/send_2fa_token.go b/internal/api/mobile/app/command/send_2fa_token.go index f8250a6..3e30ff9 100644 --- a/internal/api/mobile/app/command/send_2fa_token.go +++ b/internal/api/mobile/app/command/send_2fa_token.go @@ -2,11 +2,11 @@ package command import ( "fmt" - "github.com/2fas/api/internal/api/browser_extension/domain" - "github.com/2fas/api/internal/api/mobile/adapters" - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/common/websocket" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" + "github.com/twofas/2fas-server/internal/api/mobile/adapters" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/websocket" ) type Send2FaTokenWebsocketMessage struct { diff --git a/internal/api/mobile/app/command/update_mobile_device.go b/internal/api/mobile/app/command/update_mobile_device.go index 4a80266..6479781 100644 --- a/internal/api/mobile/app/command/update_mobile_device.go +++ b/internal/api/mobile/app/command/update_mobile_device.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" ) type UpdateMobileDevice struct { diff --git a/internal/api/mobile/app/command/update_whatsnew_notification.go b/internal/api/mobile/app/command/update_whatsnew_notification.go index eca85a1..8c333b9 100644 --- a/internal/api/mobile/app/command/update_whatsnew_notification.go +++ b/internal/api/mobile/app/command/update_whatsnew_notification.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/mobile/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" ) type UpdateNotification struct { diff --git a/internal/api/mobile/app/queries/device_browser_extensions_2fa_requests.go b/internal/api/mobile/app/queries/device_browser_extensions_2fa_requests.go index ccd12da..5baad41 100644 --- a/internal/api/mobile/app/queries/device_browser_extensions_2fa_requests.go +++ b/internal/api/mobile/app/queries/device_browser_extensions_2fa_requests.go @@ -1,8 +1,8 @@ package query import ( - "github.com/2fas/api/internal/common/clock" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/common/clock" "gorm.io/gorm" "time" ) diff --git a/internal/api/mobile/app/queries/whatsnew_notification.go b/internal/api/mobile/app/queries/whatsnew_notification.go index 032bc0e..e530a0a 100644 --- a/internal/api/mobile/app/queries/whatsnew_notification.go +++ b/internal/api/mobile/app/queries/whatsnew_notification.go @@ -1,8 +1,8 @@ package query import ( - "github.com/2fas/api/internal/api/mobile/adapters" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/api/mobile/adapters" "gorm.io/gorm" ) diff --git a/internal/api/mobile/app/security/middleware.go b/internal/api/mobile/app/security/middleware.go index d6845d7..f0233ec 100644 --- a/internal/api/mobile/app/security/middleware.go +++ b/internal/api/mobile/app/security/middleware.go @@ -3,9 +3,9 @@ package security import ( "context" "fmt" - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/common/rate_limit" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/rate_limit" "strings" "time" ) diff --git a/internal/api/mobile/domain/device_browser_extension.go b/internal/api/mobile/domain/device_browser_extension.go index 95c49de..a4e8361 100644 --- a/internal/api/mobile/domain/device_browser_extension.go +++ b/internal/api/mobile/domain/device_browser_extension.go @@ -1,8 +1,8 @@ package domain import ( - "github.com/2fas/api/internal/api/browser_extension/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/browser_extension/domain" ) type DeviceBrowserExtensionRepository interface { diff --git a/internal/api/mobile/domain/mobile_config.go b/internal/api/mobile/domain/mobile_config.go index 637e59e..20e0769 100644 --- a/internal/api/mobile/domain/mobile_config.go +++ b/internal/api/mobile/domain/mobile_config.go @@ -1,8 +1,8 @@ package domain import ( - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/common/storage" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/storage" "os" ) diff --git a/internal/api/mobile/ports/http.go b/internal/api/mobile/ports/http.go index b70cae2..0734ddd 100644 --- a/internal/api/mobile/ports/http.go +++ b/internal/api/mobile/ports/http.go @@ -2,17 +2,17 @@ package ports import ( "errors" - browser_adapters "github.com/2fas/api/internal/api/browser_extension/adapters" - "github.com/2fas/api/internal/api/mobile/adapters" - "github.com/2fas/api/internal/api/mobile/app" - "github.com/2fas/api/internal/api/mobile/app/command" - "github.com/2fas/api/internal/api/mobile/app/queries" - "github.com/2fas/api/internal/api/mobile/domain" - "github.com/2fas/api/internal/common/api" - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "github.com/google/uuid" + browser_adapters "github.com/twofas/2fas-server/internal/api/browser_extension/adapters" + "github.com/twofas/2fas-server/internal/api/mobile/adapters" + "github.com/twofas/2fas-server/internal/api/mobile/app" + "github.com/twofas/2fas-server/internal/api/mobile/app/command" + "github.com/twofas/2fas-server/internal/api/mobile/app/queries" + "github.com/twofas/2fas-server/internal/api/mobile/domain" + "github.com/twofas/2fas-server/internal/common/api" + "github.com/twofas/2fas-server/internal/common/logging" ) type RoutesHandler struct { diff --git a/internal/api/mobile/service/service.go b/internal/api/mobile/service/service.go index aed39a9..070ffc7 100644 --- a/internal/api/mobile/service/service.go +++ b/internal/api/mobile/service/service.go @@ -2,23 +2,23 @@ package service import ( "database/sql" - "github.com/2fas/api/config" - browser_extension_adapters "github.com/2fas/api/internal/api/browser_extension/adapters" - "github.com/2fas/api/internal/api/mobile/adapters" - "github.com/2fas/api/internal/api/mobile/app" - "github.com/2fas/api/internal/api/mobile/app/command" - "github.com/2fas/api/internal/api/mobile/app/queries" - apisec "github.com/2fas/api/internal/api/mobile/app/security" - "github.com/2fas/api/internal/api/mobile/ports" - "github.com/2fas/api/internal/common/clock" - "github.com/2fas/api/internal/common/db" - httpsec "github.com/2fas/api/internal/common/http" - "github.com/2fas/api/internal/common/rate_limit" - "github.com/2fas/api/internal/common/security" - "github.com/2fas/api/internal/common/websocket" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "github.com/go-redis/redis/v8" + "github.com/twofas/2fas-server/config" + browser_extension_adapters "github.com/twofas/2fas-server/internal/api/browser_extension/adapters" + "github.com/twofas/2fas-server/internal/api/mobile/adapters" + "github.com/twofas/2fas-server/internal/api/mobile/app" + "github.com/twofas/2fas-server/internal/api/mobile/app/command" + "github.com/twofas/2fas-server/internal/api/mobile/app/queries" + apisec "github.com/twofas/2fas-server/internal/api/mobile/app/security" + "github.com/twofas/2fas-server/internal/api/mobile/ports" + "github.com/twofas/2fas-server/internal/common/clock" + "github.com/twofas/2fas-server/internal/common/db" + httpsec "github.com/twofas/2fas-server/internal/common/http" + "github.com/twofas/2fas-server/internal/common/rate_limit" + "github.com/twofas/2fas-server/internal/common/security" + "github.com/twofas/2fas-server/internal/common/websocket" "gorm.io/gorm" ) diff --git a/internal/api/mobile/service/validation.go b/internal/api/mobile/service/validation.go index ad40bfa..7724eaa 100644 --- a/internal/api/mobile/service/validation.go +++ b/internal/api/mobile/service/validation.go @@ -1,9 +1,9 @@ package service import ( - "github.com/2fas/api/internal/api/mobile/domain" "github.com/go-playground/validator/v10" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/mobile/domain" ) func DeviceIdExistsValidator(repository domain.MobileDeviceRepository) validator.Func { diff --git a/internal/api/support/adapters/debug_logs_audit_gorm_repository.go b/internal/api/support/adapters/debug_logs_audit_gorm_repository.go index 180e736..b8713da 100644 --- a/internal/api/support/adapters/debug_logs_audit_gorm_repository.go +++ b/internal/api/support/adapters/debug_logs_audit_gorm_repository.go @@ -3,8 +3,8 @@ package adapters import ( "errors" "fmt" - "github.com/2fas/api/internal/api/support/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/support/domain" "gorm.io/gorm" ) diff --git a/internal/api/support/app/app.go b/internal/api/support/app/app.go index fedd673..60c4d76 100644 --- a/internal/api/support/app/app.go +++ b/internal/api/support/app/app.go @@ -1,8 +1,8 @@ package app import ( - "github.com/2fas/api/internal/api/support/app/command" - "github.com/2fas/api/internal/api/support/app/queries" + "github.com/twofas/2fas-server/internal/api/support/app/command" + "github.com/twofas/2fas-server/internal/api/support/app/queries" ) type Commands struct { diff --git a/internal/api/support/app/command/create_debug_log_audit.go b/internal/api/support/app/command/create_debug_log_audit.go index 5bdb89c..77053ea 100644 --- a/internal/api/support/app/command/create_debug_log_audit.go +++ b/internal/api/support/app/command/create_debug_log_audit.go @@ -3,11 +3,11 @@ package command import ( "bytes" "errors" - "github.com/2fas/api/internal/api/support/adapters" - "github.com/2fas/api/internal/api/support/domain" - "github.com/2fas/api/internal/common/clock" - "github.com/2fas/api/internal/common/storage" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/support/adapters" + "github.com/twofas/2fas-server/internal/api/support/domain" + "github.com/twofas/2fas-server/internal/common/clock" + "github.com/twofas/2fas-server/internal/common/storage" "io/ioutil" "mime/multipart" "path/filepath" diff --git a/internal/api/support/app/command/create_debug_log_audit_claim.go b/internal/api/support/app/command/create_debug_log_audit_claim.go index eb2d432..3f7bb65 100644 --- a/internal/api/support/app/command/create_debug_log_audit_claim.go +++ b/internal/api/support/app/command/create_debug_log_audit_claim.go @@ -1,9 +1,9 @@ package command import ( - "github.com/2fas/api/internal/api/support/domain" - "github.com/2fas/api/internal/common/clock" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/support/domain" + "github.com/twofas/2fas-server/internal/common/clock" ) type CreateDebugLogsAuditClaim struct { diff --git a/internal/api/support/app/command/delete_debug_logs_audit.go b/internal/api/support/app/command/delete_debug_logs_audit.go index 2a2e742..ac21a8a 100644 --- a/internal/api/support/app/command/delete_debug_logs_audit.go +++ b/internal/api/support/app/command/delete_debug_logs_audit.go @@ -1,9 +1,9 @@ package command import ( - "github.com/2fas/api/internal/api/support/domain" "github.com/doug-martin/goqu/v9" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/support/domain" "gorm.io/gorm" ) diff --git a/internal/api/support/app/command/update_debug_log_audit.go b/internal/api/support/app/command/update_debug_log_audit.go index 9a041c8..a9ebc90 100644 --- a/internal/api/support/app/command/update_debug_log_audit.go +++ b/internal/api/support/app/command/update_debug_log_audit.go @@ -1,8 +1,8 @@ package command import ( - "github.com/2fas/api/internal/api/support/domain" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/api/support/domain" ) type UpdateDebugLogsAudit struct { diff --git a/internal/api/support/app/queries/debug_logs_audit.go b/internal/api/support/app/queries/debug_logs_audit.go index f5727a6..5864753 100644 --- a/internal/api/support/app/queries/debug_logs_audit.go +++ b/internal/api/support/app/queries/debug_logs_audit.go @@ -1,8 +1,8 @@ package queries import ( - "github.com/2fas/api/internal/api/support/adapters" "github.com/doug-martin/goqu/v9" + "github.com/twofas/2fas-server/internal/api/support/adapters" "gorm.io/gorm" ) diff --git a/internal/api/support/ports/http.go b/internal/api/support/ports/http.go index 63bc777..1fdb3b8 100644 --- a/internal/api/support/ports/http.go +++ b/internal/api/support/ports/http.go @@ -2,16 +2,16 @@ package ports import ( "errors" - adapters3 "github.com/2fas/api/internal/api/support/adapters" - "github.com/2fas/api/internal/api/support/app" - "github.com/2fas/api/internal/api/support/app/command" - "github.com/2fas/api/internal/api/support/app/queries" - "github.com/2fas/api/internal/api/support/domain" - "github.com/2fas/api/internal/common/api" - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "github.com/google/uuid" + adapters3 "github.com/twofas/2fas-server/internal/api/support/adapters" + "github.com/twofas/2fas-server/internal/api/support/app" + "github.com/twofas/2fas-server/internal/api/support/app/command" + "github.com/twofas/2fas-server/internal/api/support/app/queries" + "github.com/twofas/2fas-server/internal/api/support/domain" + "github.com/twofas/2fas-server/internal/common/api" + "github.com/twofas/2fas-server/internal/common/logging" ) type RoutesHandler struct { diff --git a/internal/api/support/service/service.go b/internal/api/support/service/service.go index cb7c8c3..0c61598 100644 --- a/internal/api/support/service/service.go +++ b/internal/api/support/service/service.go @@ -2,20 +2,20 @@ package service import ( "database/sql" - "github.com/2fas/api/config" - "github.com/2fas/api/internal/api/support/adapters" - "github.com/2fas/api/internal/api/support/app" - "github.com/2fas/api/internal/api/support/app/command" - "github.com/2fas/api/internal/api/support/app/queries" - "github.com/2fas/api/internal/api/support/domain" - "github.com/2fas/api/internal/api/support/ports" - "github.com/2fas/api/internal/common/aws" - "github.com/2fas/api/internal/common/clock" - "github.com/2fas/api/internal/common/db" - httpsec "github.com/2fas/api/internal/common/http" - "github.com/2fas/api/internal/common/storage" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/api/support/adapters" + "github.com/twofas/2fas-server/internal/api/support/app" + "github.com/twofas/2fas-server/internal/api/support/app/command" + "github.com/twofas/2fas-server/internal/api/support/app/queries" + "github.com/twofas/2fas-server/internal/api/support/domain" + "github.com/twofas/2fas-server/internal/api/support/ports" + "github.com/twofas/2fas-server/internal/common/aws" + "github.com/twofas/2fas-server/internal/common/clock" + "github.com/twofas/2fas-server/internal/common/db" + httpsec "github.com/twofas/2fas-server/internal/common/http" + "github.com/twofas/2fas-server/internal/common/storage" "gorm.io/gorm" ) diff --git a/internal/common/aws/s3.go b/internal/common/aws/s3.go index 068a2d4..8035e50 100644 --- a/internal/common/aws/s3.go +++ b/internal/common/aws/s3.go @@ -1,12 +1,12 @@ package aws import ( - "github.com/2fas/api/internal/common/logging" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3manager" + "github.com/twofas/2fas-server/internal/common/logging" "io" "os" "path/filepath" diff --git a/internal/common/db/db.go b/internal/common/db/db.go index 8e4f31e..2b8c7bd 100644 --- a/internal/common/db/db.go +++ b/internal/common/db/db.go @@ -3,8 +3,8 @@ package db import ( "database/sql" "fmt" - "github.com/2fas/api/config" "github.com/go-sql-driver/mysql" + "github.com/twofas/2fas-server/config" ) func NewDbConnection(conf config.Configuration) *sql.DB { diff --git a/internal/common/db/gorm.go b/internal/common/db/gorm.go index a130e27..4242633 100644 --- a/internal/common/db/gorm.go +++ b/internal/common/db/gorm.go @@ -2,7 +2,7 @@ package db import ( "fmt" - "github.com/2fas/api/config" + "github.com/twofas/2fas-server/config" "gorm.io/gorm/logger" gosql "github.com/go-sql-driver/mysql" diff --git a/internal/common/http/client.go b/internal/common/http/client.go index 950e310..debc35b 100644 --- a/internal/common/http/client.go +++ b/internal/common/http/client.go @@ -4,7 +4,7 @@ import ( "bytes" "context" "encoding/json" - "github.com/2fas/api/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/logging" "io" "io/ioutil" "net" diff --git a/internal/common/http/log.go b/internal/common/http/log.go index b928ae2..8a0b224 100644 --- a/internal/common/http/log.go +++ b/internal/common/http/log.go @@ -1,8 +1,8 @@ package http import ( - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/internal/common/logging" ) func RequestJsonLogger() gin.HandlerFunc { diff --git a/internal/common/http/request.go b/internal/common/http/request.go index 0e5ac32..77012ac 100644 --- a/internal/common/http/request.go +++ b/internal/common/http/request.go @@ -1,9 +1,9 @@ package http import ( - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" "github.com/google/uuid" + "github.com/twofas/2fas-server/internal/common/logging" ) const ( diff --git a/internal/common/http/security.go b/internal/common/http/security.go index 00b2847..64d33b6 100644 --- a/internal/common/http/security.go +++ b/internal/common/http/security.go @@ -2,10 +2,10 @@ package http import ( "errors" - "github.com/2fas/api/config" - "github.com/2fas/api/internal/common/api" - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/config" + "github.com/twofas/2fas-server/internal/common/api" + "github.com/twofas/2fas-server/internal/common/logging" "net/http" ) diff --git a/internal/common/push/client.go b/internal/common/push/client.go index 4514765..efccf9a 100644 --- a/internal/common/push/client.go +++ b/internal/common/push/client.go @@ -5,8 +5,8 @@ import ( "encoding/json" firebase "firebase.google.com/go" "firebase.google.com/go/messaging" - "github.com/2fas/api/internal/api/mobile/domain" - "github.com/2fas/api/internal/common/logging" + "github.com/twofas/2fas-server/internal/api/mobile/domain" + "github.com/twofas/2fas-server/internal/common/logging" "google.golang.org/api/option" "io/ioutil" "time" diff --git a/internal/common/security/middleware.go b/internal/common/security/middleware.go index 8fee16b..067c8cb 100644 --- a/internal/common/security/middleware.go +++ b/internal/common/security/middleware.go @@ -3,9 +3,9 @@ package security import ( "context" "fmt" - "github.com/2fas/api/internal/common/logging" - "github.com/2fas/api/internal/common/rate_limit" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/internal/common/logging" + "github.com/twofas/2fas-server/internal/common/rate_limit" "time" ) diff --git a/internal/common/security/middleware_test.go b/internal/common/security/middleware_test.go index 10108a8..978ea04 100644 --- a/internal/common/security/middleware_test.go +++ b/internal/common/security/middleware_test.go @@ -1,10 +1,10 @@ package security import ( - "github.com/2fas/api/config" - http2 "github.com/2fas/api/internal/common/http" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" + "github.com/twofas/2fas-server/config" + http2 "github.com/twofas/2fas-server/internal/common/http" "net/http" "net/http/httptest" "testing" diff --git a/internal/common/websocket/gorilla_websocket_client.go b/internal/common/websocket/gorilla_websocket_client.go index bf7f12b..5d2682b 100644 --- a/internal/common/websocket/gorilla_websocket_client.go +++ b/internal/common/websocket/gorilla_websocket_client.go @@ -2,9 +2,9 @@ package websocket import ( "encoding/json" - app_http "github.com/2fas/api/internal/common/http" - "github.com/2fas/api/internal/common/logging" "github.com/gorilla/websocket" + app_http "github.com/twofas/2fas-server/internal/common/http" + "github.com/twofas/2fas-server/internal/common/logging" "net/http" "net/url" "path" diff --git a/internal/websocket/app.go b/internal/websocket/app.go index ca27325..31993fc 100644 --- a/internal/websocket/app.go +++ b/internal/websocket/app.go @@ -1,10 +1,10 @@ package websocket import ( - "github.com/2fas/api/internal/common/http" - "github.com/2fas/api/internal/websocket/browser_extension" - "github.com/2fas/api/internal/websocket/common" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/internal/common/http" + "github.com/twofas/2fas-server/internal/websocket/browser_extension" + "github.com/twofas/2fas-server/internal/websocket/common" ) type Server struct { diff --git a/internal/websocket/browser_extension/service.go b/internal/websocket/browser_extension/service.go index fc67a9f..57dd874 100644 --- a/internal/websocket/browser_extension/service.go +++ b/internal/websocket/browser_extension/service.go @@ -1,8 +1,8 @@ package browser_extension import ( - "github.com/2fas/api/internal/websocket/common" "github.com/gin-gonic/gin" + "github.com/twofas/2fas-server/internal/websocket/common" ) type RoutesHandler struct { diff --git a/internal/websocket/common/client.go b/internal/websocket/common/client.go index 854df64..245b8f3 100644 --- a/internal/websocket/common/client.go +++ b/internal/websocket/common/client.go @@ -2,8 +2,8 @@ package common import ( "bytes" - "github.com/2fas/api/internal/common/logging" "github.com/gorilla/websocket" + "github.com/twofas/2fas-server/internal/common/logging" "time" ) diff --git a/internal/websocket/common/handler.go b/internal/websocket/common/handler.go index 75e6249..dc645ca 100644 --- a/internal/websocket/common/handler.go +++ b/internal/websocket/common/handler.go @@ -1,9 +1,9 @@ package common import ( - "github.com/2fas/api/internal/common/logging" "github.com/gin-gonic/gin" "github.com/gorilla/websocket" + "github.com/twofas/2fas-server/internal/common/logging" "net/http" "os" "time" diff --git a/tests/browser_extension/browser_extension_2fa_request_test.go b/tests/browser_extension/browser_extension_2fa_request_test.go index f3682a5..dc44336 100644 --- a/tests/browser_extension/browser_extension_2fa_request_test.go +++ b/tests/browser_extension/browser_extension_2fa_request_test.go @@ -1,9 +1,9 @@ package tests import ( - "github.com/2fas/api/tests" "github.com/google/uuid" "github.com/stretchr/testify/assert" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/browser_extension/browser_extension_2fa_test.go b/tests/browser_extension/browser_extension_2fa_test.go index c3de9fc..4393126 100644 --- a/tests/browser_extension/browser_extension_2fa_test.go +++ b/tests/browser_extension/browser_extension_2fa_test.go @@ -2,8 +2,8 @@ package tests import ( "encoding/json" - "github.com/2fas/api/tests" "github.com/stretchr/testify/assert" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/browser_extension/browser_extension_log_test.go b/tests/browser_extension/browser_extension_log_test.go index 7f2f067..fddc696 100644 --- a/tests/browser_extension/browser_extension_log_test.go +++ b/tests/browser_extension/browser_extension_log_test.go @@ -2,9 +2,9 @@ package tests import ( "encoding/json" - "github.com/2fas/api/tests" "github.com/google/uuid" "github.com/stretchr/testify/assert" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/browser_extension/browser_extension_pairing_test.go b/tests/browser_extension/browser_extension_pairing_test.go index a19312e..d5f03b4 100644 --- a/tests/browser_extension/browser_extension_pairing_test.go +++ b/tests/browser_extension/browser_extension_pairing_test.go @@ -2,11 +2,11 @@ package tests import ( "encoding/json" - "github.com/2fas/api/tests" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/browser_extension/browser_extension_test.go b/tests/browser_extension/browser_extension_test.go index b658535..98606e1 100644 --- a/tests/browser_extension/browser_extension_test.go +++ b/tests/browser_extension/browser_extension_test.go @@ -1,10 +1,10 @@ package tests import ( - "github.com/2fas/api/tests" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/helpers.go b/tests/helpers.go index 38b1d5a..d87fc1a 100644 --- a/tests/helpers.go +++ b/tests/helpers.go @@ -3,7 +3,7 @@ package tests import ( "encoding/json" "fmt" - "github.com/2fas/api/internal/common/crypto" + "github.com/twofas/2fas-server/internal/common/crypto" "testing" ) diff --git a/tests/icons/icons_collection_test.go b/tests/icons/icons_collection_test.go index 60e02ab..12ec8e6 100644 --- a/tests/icons/icons_collection_test.go +++ b/tests/icons/icons_collection_test.go @@ -1,9 +1,9 @@ package tests import ( - "github.com/2fas/api/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/icons/icons_requests_test.go b/tests/icons/icons_requests_test.go index 8a02261..b626a99 100644 --- a/tests/icons/icons_requests_test.go +++ b/tests/icons/icons_requests_test.go @@ -2,11 +2,11 @@ package tests import ( "encoding/base64" - "github.com/2fas/api/internal/api/icons/app/queries" - "github.com/2fas/api/tests" "github.com/jaswdr/faker" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + "github.com/twofas/2fas-server/internal/api/icons/app/queries" + "github.com/twofas/2fas-server/tests" "io/ioutil" "testing" ) diff --git a/tests/icons/icons_test.go b/tests/icons/icons_test.go index d2f4f2e..fe086ed 100644 --- a/tests/icons/icons_test.go +++ b/tests/icons/icons_test.go @@ -2,11 +2,11 @@ package tests import ( "encoding/base64" - query "github.com/2fas/api/internal/api/icons/app/queries" - "github.com/2fas/api/tests" "github.com/jaswdr/faker" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + query "github.com/twofas/2fas-server/internal/api/icons/app/queries" + "github.com/twofas/2fas-server/tests" "io/ioutil" "testing" ) diff --git a/tests/icons/web_services_dump_test.go b/tests/icons/web_services_dump_test.go index 325b3ed..78f0bc0 100644 --- a/tests/icons/web_services_dump_test.go +++ b/tests/icons/web_services_dump_test.go @@ -2,9 +2,9 @@ package tests import ( "fmt" - "github.com/2fas/api/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + "github.com/twofas/2fas-server/tests" "math/rand" "testing" ) diff --git a/tests/icons/web_services_test.go b/tests/icons/web_services_test.go index 8cae59d..bf6ff3b 100644 --- a/tests/icons/web_services_test.go +++ b/tests/icons/web_services_test.go @@ -1,10 +1,10 @@ package tests import ( - "github.com/2fas/api/internal/api/icons/app/command" - "github.com/2fas/api/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + "github.com/twofas/2fas-server/internal/api/icons/app/command" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/mobile/mobile_browser_extensions_2fa_requests_test.go b/tests/mobile/mobile_browser_extensions_2fa_requests_test.go index a0cef75..cbdcfb2 100644 --- a/tests/mobile/mobile_browser_extensions_2fa_requests_test.go +++ b/tests/mobile/mobile_browser_extensions_2fa_requests_test.go @@ -1,8 +1,8 @@ package tests import ( - "github.com/2fas/api/tests" "github.com/stretchr/testify/assert" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/mobile/mobile_device_extension_test.go b/tests/mobile/mobile_device_extension_test.go index 5d1d436..0ecb21e 100644 --- a/tests/mobile/mobile_device_extension_test.go +++ b/tests/mobile/mobile_device_extension_test.go @@ -2,10 +2,10 @@ package tests import ( "fmt" - "github.com/2fas/api/tests" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/mobile/mobile_notifications_test.go b/tests/mobile/mobile_notifications_test.go index 9816171..65fbf11 100644 --- a/tests/mobile/mobile_notifications_test.go +++ b/tests/mobile/mobile_notifications_test.go @@ -1,11 +1,11 @@ package tests import ( - query "github.com/2fas/api/internal/api/mobile/app/queries" - "github.com/2fas/api/tests" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" + query "github.com/twofas/2fas-server/internal/api/mobile/app/queries" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/mobile/mobile_security_test.go b/tests/mobile/mobile_security_test.go index 7954e5e..c941290 100644 --- a/tests/mobile/mobile_security_test.go +++ b/tests/mobile/mobile_security_test.go @@ -1,8 +1,8 @@ package tests import ( - "github.com/2fas/api/tests" "github.com/google/uuid" + "github.com/twofas/2fas-server/tests" "testing" ) diff --git a/tests/support/mobile_debug_logs_test.go b/tests/support/mobile_debug_logs_test.go index 6f262fe..45e8d1b 100644 --- a/tests/support/mobile_debug_logs_test.go +++ b/tests/support/mobile_debug_logs_test.go @@ -2,12 +2,12 @@ package tests import ( "bytes" - query "github.com/2fas/api/internal/api/support/app/queries" - "github.com/2fas/api/tests" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" + query "github.com/twofas/2fas-server/internal/api/support/app/queries" + "github.com/twofas/2fas-server/tests" "io/ioutil" "mime/multipart" "net/http" diff --git a/tests/system/api_test.go b/tests/system/api_test.go index 706c11c..3e3b552 100644 --- a/tests/system/api_test.go +++ b/tests/system/api_test.go @@ -1,8 +1,8 @@ package tests import ( - "github.com/2fas/api/tests" "github.com/stretchr/testify/assert" + "github.com/twofas/2fas-server/tests" "io/ioutil" "testing" )