diff --git a/env/env.go b/env/env.go index 55215bb..3a65dbe 100644 --- a/env/env.go +++ b/env/env.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "lbryio/lbry-id/auth" + "lbryio/wallet-sync-server/auth" ) // NOTE for users: If you have weird characters in your email address, please diff --git a/env/env_test.go b/env/env_test.go index a10bd06..684b213 100644 --- a/env/env_test.go +++ b/env/env_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "lbryio/lbry-id/auth" + "lbryio/wallet-sync-server/auth" ) func TestAccountVerificationMode(t *testing.T) { diff --git a/go.mod b/go.mod index 83c358e..1dbd4e1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module lbryio/lbry-id +module lbryio/wallet-sync-server go 1.17 diff --git a/mail/mail.go b/mail/mail.go index d4b2092..92230aa 100644 --- a/mail/mail.go +++ b/mail/mail.go @@ -8,9 +8,9 @@ import ( "github.com/mailgun/mailgun-go/v4" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/env" - "lbryio/lbry-id/server/paths" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/env" + "lbryio/wallet-sync-server/server/paths" ) const MAILGUN_DEBUG = false diff --git a/mail/mail_test.go b/mail/mail_test.go index a639902..7ccbe8d 100644 --- a/mail/mail_test.go +++ b/mail/mail_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "lbryio/lbry-id/auth" + "lbryio/wallet-sync-server/auth" ) type TestEnv struct { diff --git a/main.go b/main.go index 653cfa8..021e8dd 100644 --- a/main.go +++ b/main.go @@ -3,11 +3,11 @@ package main import ( "log" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/env" - "lbryio/lbry-id/mail" - "lbryio/lbry-id/server" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/env" + "lbryio/wallet-sync-server/mail" + "lbryio/wallet-sync-server/server" + "lbryio/wallet-sync-server/store" ) func storeInit() (s store.Store) { diff --git a/server/account.go b/server/account.go index 6537fc5..64ae56f 100644 --- a/server/account.go +++ b/server/account.go @@ -6,9 +6,9 @@ import ( "log" "net/http" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/env" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/env" + "lbryio/wallet-sync-server/store" ) type RegisterRequest struct { diff --git a/server/account_test.go b/server/account_test.go index cdce6ac..8b84ebf 100644 --- a/server/account_test.go +++ b/server/account_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" ) // TODO - maybe this test could just be one of the TestServerRegisterAccountVerification tests now diff --git a/server/auth.go b/server/auth.go index 8e4f39c..ed1356b 100644 --- a/server/auth.go +++ b/server/auth.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/store" ) // DeviceId is decided by the device. UserId is decided by the server, and is diff --git a/server/auth_test.go b/server/auth_test.go index 66dc0d8..66fc059 100644 --- a/server/auth_test.go +++ b/server/auth_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" ) func TestServerAuthHandlerSuccess(t *testing.T) { diff --git a/server/client.go b/server/client.go index 5b7bcbb..d782beb 100644 --- a/server/client.go +++ b/server/client.go @@ -6,8 +6,8 @@ import ( "fmt" "net/http" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/store" ) // Thanks to Standard Notes. See: diff --git a/server/client_test.go b/server/client_test.go index 6a4bb09..d2667bb 100644 --- a/server/client_test.go +++ b/server/client_test.go @@ -9,9 +9,9 @@ import ( "net/http/httptest" "testing" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" ) func TestServerGetClientSalt(t *testing.T) { diff --git a/server/integration_test.go b/server/integration_test.go index ee856ad..af8c067 100644 --- a/server/integration_test.go +++ b/server/integration_test.go @@ -13,10 +13,10 @@ import ( "strings" "testing" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" + "lbryio/wallet-sync-server/wallet" ) // Whereas sever_test.go stubs out auth store and wallet, these will use the real thing, but test fewer paths. diff --git a/server/password.go b/server/password.go index a2d6769..ed45e72 100644 --- a/server/password.go +++ b/server/password.go @@ -5,9 +5,9 @@ import ( "fmt" "net/http" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/store" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/store" + "lbryio/wallet-sync-server/wallet" ) type ChangePasswordRequest struct { diff --git a/server/password_test.go b/server/password_test.go index 6661f4a..7dabd68 100644 --- a/server/password_test.go +++ b/server/password_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" + "lbryio/wallet-sync-server/wallet" ) func TestServerChangePassword(t *testing.T) { diff --git a/server/server.go b/server/server.go index fd2ce2b..8fb257b 100644 --- a/server/server.go +++ b/server/server.go @@ -8,11 +8,11 @@ import ( "github.com/prometheus/client_golang/prometheus/promhttp" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/env" - "lbryio/lbry-id/mail" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/env" + "lbryio/wallet-sync-server/mail" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" ) type Server struct { diff --git a/server/server_test.go b/server/server_test.go index d434eed..c72a581 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -10,10 +10,10 @@ import ( "strings" "testing" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" + "lbryio/wallet-sync-server/wallet" ) const TestPort = 8090 diff --git a/server/wallet.go b/server/wallet.go index f59b42a..8b79c43 100644 --- a/server/wallet.go +++ b/server/wallet.go @@ -7,10 +7,10 @@ import ( "github.com/prometheus/client_golang/prometheus" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/metrics" - "lbryio/lbry-id/store" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/metrics" + "lbryio/wallet-sync-server/store" + "lbryio/wallet-sync-server/wallet" ) type WalletRequest struct { diff --git a/server/wallet_test.go b/server/wallet_test.go index d399cdd..a98d301 100644 --- a/server/wallet_test.go +++ b/server/wallet_test.go @@ -10,10 +10,10 @@ import ( "strings" "testing" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/server/paths" - "lbryio/lbry-id/store" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/server/paths" + "lbryio/wallet-sync-server/store" + "lbryio/wallet-sync-server/wallet" ) func TestServerGetWallet(t *testing.T) { diff --git a/store/account_test.go b/store/account_test.go index 7a3ef23..db568dc 100644 --- a/store/account_test.go +++ b/store/account_test.go @@ -8,7 +8,7 @@ import ( "github.com/mattn/go-sqlite3" - "lbryio/lbry-id/auth" + "lbryio/wallet-sync-server/auth" ) func expectAccountMatch( diff --git a/store/auth_test.go b/store/auth_test.go index b47ebdb..8b22de2 100644 --- a/store/auth_test.go +++ b/store/auth_test.go @@ -9,7 +9,7 @@ import ( "github.com/mattn/go-sqlite3" - "lbryio/lbry-id/auth" + "lbryio/wallet-sync-server/auth" ) func expectTokenExists(t *testing.T, s *Store, expectedToken auth.AuthToken) { diff --git a/store/password_test.go b/store/password_test.go index e5ca535..ad67a2b 100644 --- a/store/password_test.go +++ b/store/password_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/wallet" ) // It involves both wallet and account tables. Should it go in wallet_test.go diff --git a/store/store.go b/store/store.go index 08baae8..0245c93 100644 --- a/store/store.go +++ b/store/store.go @@ -11,8 +11,8 @@ import ( "github.com/mattn/go-sqlite3" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/wallet" ) var ( diff --git a/store/store_test.go b/store/store_test.go index e78b429..6f29eec 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "lbryio/lbry-id/auth" + "lbryio/wallet-sync-server/auth" ) func StoreTestInit(t *testing.T) (s Store, tmpFile *os.File) { diff --git a/store/wallet_test.go b/store/wallet_test.go index 512eb4b..8cd8790 100644 --- a/store/wallet_test.go +++ b/store/wallet_test.go @@ -6,8 +6,8 @@ import ( "github.com/mattn/go-sqlite3" - "lbryio/lbry-id/auth" - "lbryio/lbry-id/wallet" + "lbryio/wallet-sync-server/auth" + "lbryio/wallet-sync-server/wallet" ) func expectWalletExists(