diff --git a/README.md b/README.md index 617f64f..3445827 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,4 @@ OPTIONS: ### Recompile proto-files -`protoc --go_out=. --go-grpc_out=. --go_opt=module=gitea.benny.dog/torjus/ezshare --go-grpc_opt=module=gitea.benny.dog/torjus/ezshare protos/ezshare.proto` +`protoc --go_out=. --go-grpc_out=. --go_opt=module=git.t-juice.club/torjus/ezshare --go-grpc_opt=module=git.t-juice.club/torjus/ezshare protos/ezshare.proto` diff --git a/actions/admin.go b/actions/admin.go index 6499398..ae8f61a 100644 --- a/actions/admin.go +++ b/actions/admin.go @@ -7,7 +7,7 @@ import ( "path/filepath" "regexp" - "gitea.benny.dog/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/pb" "github.com/urfave/cli/v2" "google.golang.org/grpc" ) diff --git a/actions/client.go b/actions/client.go index a31dfd8..cc9cb76 100644 --- a/actions/client.go +++ b/actions/client.go @@ -16,11 +16,11 @@ import ( "syscall" "time" - "gitea.benny.dog/torjus/ezshare/certs" - "gitea.benny.dog/torjus/ezshare/config" - "gitea.benny.dog/torjus/ezshare/ezshare" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/server" + "git.t-juice.club/torjus/ezshare/certs" + "git.t-juice.club/torjus/ezshare/config" + "git.t-juice.club/torjus/ezshare/ezshare" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/server" "github.com/urfave/cli/v2" "golang.org/x/term" "google.golang.org/grpc" diff --git a/actions/misc.go b/actions/misc.go index 6ca2c34..276522b 100644 --- a/actions/misc.go +++ b/actions/misc.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "gitea.benny.dog/torjus/ezshare/certs" - "gitea.benny.dog/torjus/ezshare/config" + "git.t-juice.club/torjus/ezshare/certs" + "git.t-juice.club/torjus/ezshare/config" "github.com/urfave/cli/v2" ) diff --git a/actions/serve.go b/actions/serve.go index cdb77ae..509f321 100644 --- a/actions/serve.go +++ b/actions/serve.go @@ -15,11 +15,11 @@ import ( "strings" "time" - "gitea.benny.dog/torjus/ezshare/certs" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/server" - "gitea.benny.dog/torjus/ezshare/server/interceptors" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/certs" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/server" + "git.t-juice.club/torjus/ezshare/server/interceptors" + "git.t-juice.club/torjus/ezshare/store" "github.com/google/uuid" "github.com/urfave/cli/v2" "go.uber.org/zap" diff --git a/certs/certservice.go b/certs/certservice.go index 046f05b..4210e1b 100644 --- a/certs/certservice.go +++ b/certs/certservice.go @@ -13,7 +13,7 @@ import ( "math/big" "time" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/store" ) type CertService struct { diff --git a/certs/certservice_test.go b/certs/certservice_test.go index 51f8fd2..f8ec4f5 100644 --- a/certs/certservice_test.go +++ b/certs/certservice_test.go @@ -3,10 +3,11 @@ package certs_test import ( "crypto/x509" "encoding/pem" - "gitea.benny.dog/torjus/ezshare/certs" - "gitea.benny.dog/torjus/ezshare/store" - "github.com/google/uuid" "testing" + + "git.t-juice.club/torjus/ezshare/certs" + "git.t-juice.club/torjus/ezshare/store" + "github.com/google/uuid" ) func TestCertService(t *testing.T) { diff --git a/config/config.go b/config/config.go index acb393c..5421077 100644 --- a/config/config.go +++ b/config/config.go @@ -12,7 +12,7 @@ import ( "path/filepath" "strings" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/store" "github.com/pelletier/go-toml" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/config/config_test.go b/config/config_test.go index 7f9b0c1..d7226bf 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "gitea.benny.dog/torjus/ezshare/config" + "git.t-juice.club/torjus/ezshare/config" ) var configStrExample = ` diff --git a/ezshare/version.go b/ezshare/version.go index d6b4e63..54b192f 100644 --- a/ezshare/version.go +++ b/ezshare/version.go @@ -1,4 +1,4 @@ package ezshare // TODO: Maybe put this somewhere more sensible -const Version = "v0.1.10" +const Version = "v0.1.11" diff --git a/go.mod b/go.mod index 77ba7fd..5df7f0a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.benny.dog/torjus/ezshare +module git.t-juice.club/torjus/ezshare go 1.17 diff --git a/main.go b/main.go index 2735cdb..edce49c 100644 --- a/main.go +++ b/main.go @@ -4,8 +4,8 @@ import ( "log" "os" - "gitea.benny.dog/torjus/ezshare/actions" - "gitea.benny.dog/torjus/ezshare/ezshare" + "git.t-juice.club/torjus/ezshare/actions" + "git.t-juice.club/torjus/ezshare/ezshare" "github.com/urfave/cli/v2" ) diff --git a/pb/ezshare.pb.go b/pb/ezshare.pb.go index e737e77..448bd1f 100644 --- a/pb/ezshare.pb.go +++ b/pb/ezshare.pb.go @@ -1845,10 +1845,10 @@ var file_protos_ezshare_proto_rawDesc = []byte{ 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x2e, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x23, 0x5a, - 0x21, 0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x62, 0x65, 0x6e, 0x6e, 0x79, 0x2e, 0x64, 0x6f, 0x67, - 0x2f, 0x74, 0x6f, 0x72, 0x6a, 0x75, 0x73, 0x2f, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x24, 0x5a, + 0x22, 0x67, 0x69, 0x74, 0x2e, 0x74, 0x2d, 0x6a, 0x75, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6c, 0x75, + 0x62, 0x2f, 0x74, 0x6f, 0x72, 0x6a, 0x75, 0x73, 0x2f, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/protos/ezshare.proto b/protos/ezshare.proto index 3cbe2e0..389216f 100644 --- a/protos/ezshare.proto +++ b/protos/ezshare.proto @@ -3,7 +3,7 @@ package ezshare; import "google/protobuf/timestamp.proto"; -option go_package = "gitea.benny.dog/torjus/ezshare/pb"; +option go_package = "git.t-juice.club/torjus/ezshare/pb"; ///////////////////// // Common messages // diff --git a/server/binaryservice.go b/server/binaryservice.go index 33553f4..e7e3021 100644 --- a/server/binaryservice.go +++ b/server/binaryservice.go @@ -3,10 +3,10 @@ package server import ( "context" - "gitea.benny.dog/torjus/ezshare/ezshare" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/server/interceptors" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/ezshare" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/server/interceptors" + "git.t-juice.club/torjus/ezshare/store" "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/server/certservice.go b/server/certservice.go index f91fc38..de0f9b3 100644 --- a/server/certservice.go +++ b/server/certservice.go @@ -3,10 +3,10 @@ package server import ( "context" - "gitea.benny.dog/torjus/ezshare/certs" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/server/interceptors" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/certs" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/server/interceptors" + "git.t-juice.club/torjus/ezshare/store" "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/server/fileservice.go b/server/fileservice.go index 465a93c..e42eaae 100644 --- a/server/fileservice.go +++ b/server/fileservice.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/server/interceptors" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/server/interceptors" + "git.t-juice.club/torjus/ezshare/store" "github.com/dustin/go-humanize" "github.com/google/uuid" "go.uber.org/zap" diff --git a/server/http.go b/server/http.go index b906fb4..13c34f5 100644 --- a/server/http.go +++ b/server/http.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/store" "github.com/go-chi/chi/v5" "go.uber.org/zap" ) diff --git a/server/interceptors/auth.go b/server/interceptors/auth.go index 5ed4df6..699185a 100644 --- a/server/interceptors/auth.go +++ b/server/interceptors/auth.go @@ -3,9 +3,9 @@ package interceptors import ( "context" - "gitea.benny.dog/torjus/ezshare/certs" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/certs" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/store" "go.uber.org/zap" "google.golang.org/grpc" "google.golang.org/grpc/codes" diff --git a/server/userservice.go b/server/userservice.go index 63ce258..1e83610 100644 --- a/server/userservice.go +++ b/server/userservice.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "gitea.benny.dog/torjus/ezshare/certs" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/server/interceptors" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/certs" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/server/interceptors" + "git.t-juice.club/torjus/ezshare/store" "github.com/google/uuid" "go.uber.org/zap" "golang.org/x/crypto/bcrypt" diff --git a/store/bolt.go b/store/bolt.go index 0d615b5..7100989 100644 --- a/store/bolt.go +++ b/store/bolt.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "gitea.benny.dog/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/pb" "github.com/google/uuid" bolt "go.etcd.io/bbolt" "google.golang.org/protobuf/proto" diff --git a/store/bolt_test.go b/store/bolt_test.go index d05458b..e0dc8f1 100644 --- a/store/bolt_test.go +++ b/store/bolt_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/store" ) func TestBoltStore(t *testing.T) { diff --git a/store/filesystem.go b/store/filesystem.go index 0953adc..0d27a49 100644 --- a/store/filesystem.go +++ b/store/filesystem.go @@ -8,7 +8,7 @@ import ( "os" "path/filepath" - "gitea.benny.dog/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/pb" "github.com/google/uuid" ) diff --git a/store/filesystem_test.go b/store/filesystem_test.go index 929fff4..a2c4674 100644 --- a/store/filesystem_test.go +++ b/store/filesystem_test.go @@ -3,7 +3,7 @@ package store_test import ( "testing" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/store" ) func TestFileStore(t *testing.T) { diff --git a/store/memory.go b/store/memory.go index cd3c410..fab93eb 100644 --- a/store/memory.go +++ b/store/memory.go @@ -8,7 +8,7 @@ import ( "strings" "sync" - "gitea.benny.dog/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/pb" "github.com/google/uuid" ) diff --git a/store/memory_test.go b/store/memory_test.go index bfe830f..d970771 100644 --- a/store/memory_test.go +++ b/store/memory_test.go @@ -3,7 +3,7 @@ package store_test import ( "testing" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/store" ) func TestMemoryFileStore(t *testing.T) { diff --git a/store/store.go b/store/store.go index f21eb3a..e0107d6 100644 --- a/store/store.go +++ b/store/store.go @@ -5,7 +5,7 @@ import ( "crypto/x509" "fmt" - "gitea.benny.dog/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/pb" ) var ErrNoSuchItem = fmt.Errorf("no such item") diff --git a/store/store_test.go b/store/store_test.go index 3df0956..af450cd 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -14,8 +14,8 @@ import ( "github.com/google/uuid" "google.golang.org/protobuf/testing/protocmp" - "gitea.benny.dog/torjus/ezshare/pb" - "gitea.benny.dog/torjus/ezshare/store" + "git.t-juice.club/torjus/ezshare/pb" + "git.t-juice.club/torjus/ezshare/store" "google.golang.org/protobuf/types/known/timestamppb" )