Rename the output. lbry-id -> wallet-sync-server

This commit is contained in:
Daniel Krol 2022-08-22 12:05:53 -04:00
parent 4dfacd8826
commit 4843b91ce7
25 changed files with 64 additions and 64 deletions

2
env/env.go vendored
View file

@ -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

2
env/env_test.go vendored
View file

@ -5,7 +5,7 @@ import (
"reflect"
"testing"
"lbryio/lbry-id/auth"
"lbryio/wallet-sync-server/auth"
)
func TestAccountVerificationMode(t *testing.T) {

2
go.mod
View file

@ -1,4 +1,4 @@
module lbryio/lbry-id
module lbryio/wallet-sync-server
go 1.17

View file

@ -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

View file

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"lbryio/lbry-id/auth"
"lbryio/wallet-sync-server/auth"
)
type TestEnv struct {

10
main.go
View file

@ -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) {

View file

@ -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 {

View file

@ -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

View file

@ -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

View file

@ -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) {

View file

@ -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:

View file

@ -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) {

View file

@ -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.

View file

@ -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 {

View file

@ -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) {

View file

@ -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 {

View file

@ -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

View file

@ -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 {

View file

@ -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) {

View file

@ -8,7 +8,7 @@ import (
"github.com/mattn/go-sqlite3"
"lbryio/lbry-id/auth"
"lbryio/wallet-sync-server/auth"
)
func expectAccountMatch(

View file

@ -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) {

View file

@ -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

View file

@ -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 (

View file

@ -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) {

View file

@ -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(