mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
Change gogo/protobuf to anyproto/protobuf
This commit is contained in:
parent
491fe04d5c
commit
012a7ee5f0
62 changed files with 82 additions and 76 deletions
9
Makefile
9
Makefile
|
@ -6,7 +6,9 @@ all:
|
||||||
@set -e;
|
@set -e;
|
||||||
@git config core.hooksPath .githooks;
|
@git config core.hooksPath .githooks;
|
||||||
|
|
||||||
proto:
|
proto: proto-execute replace-strings
|
||||||
|
|
||||||
|
proto-execute:
|
||||||
@echo 'Generating protobuf packages (Go)...'
|
@echo 'Generating protobuf packages (Go)...'
|
||||||
|
|
||||||
@$(eval P_ACL_RECORDS_PATH_PB := commonspace/object/acl/aclrecordproto)
|
@$(eval P_ACL_RECORDS_PATH_PB := commonspace/object/acl/aclrecordproto)
|
||||||
|
@ -34,8 +36,11 @@ proto:
|
||||||
deps:
|
deps:
|
||||||
go mod download
|
go mod download
|
||||||
go build -o deps storj.io/drpc/cmd/protoc-gen-go-drpc
|
go build -o deps storj.io/drpc/cmd/protoc-gen-go-drpc
|
||||||
go build -o deps github.com/gogo/protobuf/protoc-gen-gogofaster
|
go build -o deps github.com/anyproto/protobuf/protoc-gen-gogofaster
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test ./... --cover
|
go test ./... --cover
|
||||||
|
|
||||||
|
replace-strings:
|
||||||
|
@echo "Replacing 'github.com/gogo/protobuf' with 'github.com/anyproto/protobuf' in all files recursively..."
|
||||||
|
LC_CTYPE=C LANG=C find . -type f -name "*.go" | xargs sed -i '' "s|github.com/gogo/protobuf|github.com/anyproto/protobuf|g"
|
||||||
|
|
|
@ -5,7 +5,7 @@ package fileproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package aclrecordproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/object/accountdata"
|
"github.com/anyproto/any-sync/commonspace/object/accountdata"
|
||||||
"github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto"
|
"github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package list
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/app/logger"
|
"github.com/anyproto/any-sync/app/logger"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package syncacl
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
||||||
"github.com/anyproto/any-sync/consensus/consensusproto"
|
"github.com/anyproto/any-sync/consensus/consensusproto"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
||||||
"github.com/anyproto/any-sync/commonspace/syncstatus"
|
"github.com/anyproto/any-sync/commonspace/syncstatus"
|
||||||
"github.com/anyproto/any-sync/consensus/consensusproto"
|
"github.com/anyproto/any-sync/consensus/consensusproto"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"go.uber.org/mock/gomock"
|
"go.uber.org/mock/gomock"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package objecttree
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
||||||
"github.com/anyproto/any-sync/util/crypto"
|
"github.com/anyproto/any-sync/util/crypto"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package objecttree
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
||||||
"github.com/anyproto/any-sync/util/cidutil"
|
"github.com/anyproto/any-sync/util/cidutil"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package objecttree
|
package objecttree
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package synctree
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
|
||||||
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"go.uber.org/mock/gomock"
|
"go.uber.org/mock/gomock"
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ package treechangeproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto"
|
"github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto"
|
||||||
"github.com/anyproto/any-sync/commonspace/object/acl/list"
|
"github.com/anyproto/any-sync/commonspace/object/acl/list"
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/anyproto/any-sync/commonspace/deletionmanager"
|
"github.com/anyproto/any-sync/commonspace/deletionmanager"
|
||||||
"github.com/anyproto/any-sync/util/crypto"
|
"github.com/anyproto/any-sync/util/crypto"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/accountservice"
|
"github.com/anyproto/any-sync/accountservice"
|
||||||
|
|
|
@ -2,7 +2,7 @@ package settingsstate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package settingsstate
|
||||||
import (
|
import (
|
||||||
"github.com/anyproto/any-sync/commonspace/object/tree/objecttree"
|
"github.com/anyproto/any-sync/commonspace/object/tree/objecttree"
|
||||||
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StateBuilder interface {
|
type StateBuilder interface {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
package spacesyncproto
|
package spacesyncproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ package spacesyncproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package objectmessages
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package objectmessages
|
package objectmessages
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/cheggaaa/mb/v3"
|
"github.com/cheggaaa/mb/v3"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/app"
|
"github.com/anyproto/any-sync/app"
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package syncdeps
|
package syncdeps
|
||||||
|
|
||||||
import "github.com/gogo/protobuf/proto"
|
import "github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
type Request interface {
|
type Request interface {
|
||||||
PeerId() string
|
PeerId() string
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/cheggaaa/mb/v3"
|
"github.com/cheggaaa/mb/v3"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/app"
|
"github.com/anyproto/any-sync/app"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package synctest
|
package synctest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/sync/synctestproto"
|
"github.com/anyproto/any-sync/commonspace/sync/synctestproto"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package synctest
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/sync/syncdeps"
|
"github.com/anyproto/any-sync/commonspace/sync/syncdeps"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/cheggaaa/mb/v3"
|
"github.com/cheggaaa/mb/v3"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/app"
|
"github.com/anyproto/any-sync/app"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package synctest
|
package synctest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
"github.com/anyproto/any-sync/commonspace/sync/synctestproto"
|
"github.com/anyproto/any-sync/commonspace/sync/synctestproto"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package synctestproto
|
package synctestproto
|
||||||
|
|
||||||
import "github.com/gogo/protobuf/proto"
|
import "github.com/anyproto/protobuf/proto"
|
||||||
|
|
||||||
func (c *CounterIncrease) MsgSize() uint64 {
|
func (c *CounterIncrease) MsgSize() uint64 {
|
||||||
if c != nil {
|
if c != nil {
|
||||||
|
|
|
@ -5,7 +5,7 @@ package synctestproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package consensusproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package coordinatorproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/anyproto/any-sync/util/crypto"
|
"github.com/anyproto/any-sync/util/crypto"
|
||||||
"github.com/anyproto/any-sync/util/strkey"
|
"github.com/anyproto/any-sync/util/strkey"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"github.com/anyproto/any-sync/util/crypto"
|
"github.com/anyproto/any-sync/util/crypto"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
5
go.mod
5
go.mod
|
@ -7,13 +7,13 @@ require (
|
||||||
github.com/anyproto/go-chash v0.1.0
|
github.com/anyproto/go-chash v0.1.0
|
||||||
github.com/anyproto/go-slip10 v1.0.0
|
github.com/anyproto/go-slip10 v1.0.0
|
||||||
github.com/anyproto/go-slip21 v1.0.0
|
github.com/anyproto/go-slip21 v1.0.0
|
||||||
|
github.com/anyproto/protobuf v1.3.3-0.20240801222536-5596d71a739e
|
||||||
github.com/btcsuite/btcd v0.22.1
|
github.com/btcsuite/btcd v0.22.1
|
||||||
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
|
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
|
||||||
github.com/cespare/xxhash v1.1.0
|
github.com/cespare/xxhash v1.1.0
|
||||||
github.com/cheggaaa/mb/v3 v3.0.2
|
github.com/cheggaaa/mb/v3 v3.0.2
|
||||||
github.com/gobwas/glob v0.2.3
|
github.com/gobwas/glob v0.2.3
|
||||||
github.com/goccy/go-graphviz v0.1.2
|
github.com/goccy/go-graphviz v0.1.2
|
||||||
github.com/gogo/protobuf v1.3.2
|
|
||||||
github.com/google/uuid v1.6.0
|
github.com/google/uuid v1.6.0
|
||||||
github.com/hashicorp/yamux v0.1.1
|
github.com/hashicorp/yamux v0.1.1
|
||||||
github.com/huandu/skiplist v1.2.0
|
github.com/huandu/skiplist v1.2.0
|
||||||
|
@ -54,6 +54,7 @@ require (
|
||||||
github.com/go-logr/logr v1.4.1 // indirect
|
github.com/go-logr/logr v1.4.1 // indirect
|
||||||
github.com/go-logr/stdr v1.2.2 // indirect
|
github.com/go-logr/stdr v1.2.2 // indirect
|
||||||
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
||||||
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
|
||||||
github.com/golang/protobuf v1.5.4 // indirect
|
github.com/golang/protobuf v1.5.4 // indirect
|
||||||
github.com/google/pprof v0.0.0-20240402174815-29b9bb013b0f // indirect
|
github.com/google/pprof v0.0.0-20240402174815-29b9bb013b0f // indirect
|
||||||
|
@ -100,5 +101,3 @@ require (
|
||||||
google.golang.org/protobuf v1.33.0 // indirect
|
google.golang.org/protobuf v1.33.0 // indirect
|
||||||
lukechampine.com/blake3 v1.2.1 // indirect
|
lukechampine.com/blake3 v1.2.1 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/gogo/protobuf => github.com/anyproto/protobuf v1.3.3-0.20240715205950-2af411f17dfa
|
|
||||||
|
|
6
go.sum
6
go.sum
|
@ -12,8 +12,8 @@ github.com/anyproto/go-slip10 v1.0.0 h1:uAEtSuudR3jJBOfkOXf3bErxVoxbuKwdoJN55M1i
|
||||||
github.com/anyproto/go-slip10 v1.0.0/go.mod h1:BCmIlM1KB8wX6K4/8pOvxPl9oVKfEvZ5vsmO5rkK6vg=
|
github.com/anyproto/go-slip10 v1.0.0/go.mod h1:BCmIlM1KB8wX6K4/8pOvxPl9oVKfEvZ5vsmO5rkK6vg=
|
||||||
github.com/anyproto/go-slip21 v1.0.0 h1:CI7lUqTIwmPOEGVAj4jyNLoICvueh++0U2HoAi3m2ZY=
|
github.com/anyproto/go-slip21 v1.0.0 h1:CI7lUqTIwmPOEGVAj4jyNLoICvueh++0U2HoAi3m2ZY=
|
||||||
github.com/anyproto/go-slip21 v1.0.0/go.mod h1:gbIJt7HAdr5DuT4f2pFTKCBSUWYsm/fysHBNqgsuxT0=
|
github.com/anyproto/go-slip21 v1.0.0/go.mod h1:gbIJt7HAdr5DuT4f2pFTKCBSUWYsm/fysHBNqgsuxT0=
|
||||||
github.com/anyproto/protobuf v1.3.3-0.20240715205950-2af411f17dfa h1:uQImj4hK8HwkOcxhy/88/+jQpH0n2jX2Iryz6vomhM0=
|
github.com/anyproto/protobuf v1.3.3-0.20240801222536-5596d71a739e h1:BitG6mK/JctFt57+AJO9A6tF06g8Pun/OUjODB/v8z4=
|
||||||
github.com/anyproto/protobuf v1.3.3-0.20240715205950-2af411f17dfa/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
github.com/anyproto/protobuf v1.3.3-0.20240801222536-5596d71a739e/go.mod h1:5+PHE01DgsDPkralb8MYmGg2sPQahsqEJ9ue7ciDHKg=
|
||||||
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
|
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
|
||||||
github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o=
|
github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o=
|
||||||
github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
|
github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
|
||||||
|
@ -77,6 +77,8 @@ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
|
||||||
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
|
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
|
||||||
github.com/goccy/go-graphviz v0.1.2 h1:sWSJ6w13BCm/ZOUTHDVrdvbsxqN8yyzaFcHrH/hQ9Yg=
|
github.com/goccy/go-graphviz v0.1.2 h1:sWSJ6w13BCm/ZOUTHDVrdvbsxqN8yyzaFcHrH/hQ9Yg=
|
||||||
github.com/goccy/go-graphviz v0.1.2/go.mod h1:pMYpbAqJT10V8dzV1JN/g/wUlG/0imKPzn3ZsrchGCI=
|
github.com/goccy/go-graphviz v0.1.2/go.mod h1:pMYpbAqJT10V8dzV1JN/g/wUlG/0imKPzn3ZsrchGCI=
|
||||||
|
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||||
|
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
|
||||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
|
||||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
|
|
|
@ -5,7 +5,7 @@ package identityrepoproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package nameserviceproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -5,7 +5,7 @@ package nameserviceproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package limiterproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
math "math"
|
math "math"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ package handshakeproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package streampool
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ package testservice
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package paymentserviceproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
bytes "bytes"
|
bytes "bytes"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
jsonpb "github.com/gogo/protobuf/jsonpb"
|
jsonpb "github.com/anyproto/protobuf/jsonpb"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
drpc "storj.io/drpc"
|
drpc "storj.io/drpc"
|
||||||
drpcerr "storj.io/drpc/drpcerr"
|
drpcerr "storj.io/drpc/drpcerr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package paymentserviceproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"crypto/subtle"
|
"crypto/subtle"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/anyproto/any-sync/util/crypto/cryptoproto"
|
"github.com/anyproto/any-sync/util/crypto/cryptoproto"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
mbase "github.com/multiformats/go-multibase"
|
mbase "github.com/multiformats/go-multibase"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ package cryptoproto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/anyproto/protobuf/proto"
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/anyproto/any-sync/util/crypto/cryptoproto"
|
"github.com/anyproto/any-sync/util/crypto/cryptoproto"
|
||||||
"github.com/anyproto/any-sync/util/strkey"
|
"github.com/anyproto/any-sync/util/strkey"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/anyproto/protobuf/proto"
|
||||||
"github.com/libp2p/go-libp2p/core/crypto"
|
"github.com/libp2p/go-libp2p/core/crypto"
|
||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue