Change module name to new repo account
This commit is contained in:
parent
7833015f56
commit
55686cb7b5
19 changed files with 40 additions and 40 deletions
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module orblivion/lbry-id
|
module lbryio/lbry-id
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -2,9 +2,9 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/server"
|
"lbryio/lbry-id/server"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func storeInit() (s store.Store) {
|
func storeInit() (s store.Store) {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO email verification cycle
|
// TODO email verification cycle
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerRegisterSuccess(t *testing.T) {
|
func TestServerRegisterSuccess(t *testing.T) {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeviceId is decided by the device. UserId is decided by the server, and is
|
// DeviceId is decided by the device. UserId is decided by the server, and is
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Whereas sever_test.go stubs out auth store and wallet, these will use the real thing, but test fewer paths.
|
// Whereas sever_test.go stubs out auth store and wallet, these will use the real thing, but test fewer paths.
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ChangePasswordRequest struct {
|
type ChangePasswordRequest struct {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerChangePassword(t *testing.T) {
|
func TestServerChangePassword(t *testing.T) {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/mail"
|
"net/mail"
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO proper doc comments!
|
// TODO proper doc comments!
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Implementing interfaces for stubbed out packages
|
// Implementing interfaces for stubbed out packages
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WalletRequest struct {
|
type WalletRequest struct {
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/store"
|
"lbryio/lbry-id/store"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerGetWallet(t *testing.T) {
|
func TestServerGetWallet(t *testing.T) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func expectAccountMatch(t *testing.T, s *Store, email auth.Email, password auth.Password) {
|
func expectAccountMatch(t *testing.T, s *Store, email auth.Email, password auth.Password) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func expectTokenExists(t *testing.T, s *Store, expectedToken auth.AuthToken) {
|
func expectTokenExists(t *testing.T, s *Store, expectedToken auth.AuthToken) {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// It involves both wallet and account tables. Should it go in wallet_test.go
|
// It involves both wallet and account tables. Should it go in wallet_test.go
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func StoreTestInit(t *testing.T) (s Store, tmpFile *os.File) {
|
func StoreTestInit(t *testing.T) (s Store, tmpFile *os.File) {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"orblivion/lbry-id/auth"
|
"lbryio/lbry-id/auth"
|
||||||
"orblivion/lbry-id/wallet"
|
"lbryio/lbry-id/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func expectWalletExists(
|
func expectWalletExists(
|
||||||
|
|
Loading…
Reference in a new issue