Skip to content

Commit

Permalink
Merge pull request #1137 from mrpalide/fix/dmsg-new-structure-usage
Browse files Browse the repository at this point in the history
fix dmsg imports
  • Loading branch information
ersonp authored Mar 29, 2022
2 parents 92f3024 + 9447343 commit f1728e1
Show file tree
Hide file tree
Showing 100 changed files with 99 additions and 93 deletions.
2 changes: 1 addition & 1 deletion cmd/skywire-cli/commands/mdisc/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"text/tabwriter"
"time"

"github.com/skycoin/dmsg/disc"
"github.com/skycoin/dmsg/pkg/disc"
"github.com/skycoin/skycoin/src/util/logging"
"github.com/spf13/cobra"

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/pkg/profile v1.5.0
github.com/shirou/gopsutil/v3 v3.21.4
github.com/sirupsen/logrus v1.8.1
github.com/skycoin/dmsg v0.0.0-20220309150149-59567d358f03
github.com/skycoin/dmsg v0.0.0-20220329122357-2e8d4715d14f
github.com/skycoin/skycoin v0.27.1
github.com/skycoin/yamux v0.0.0-20200803175205-571ceb89da9f
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
Expand Down
8 changes: 3 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ github.com/getlantern/systray v1.1.0 h1:U0wCEqseLi2ok1fE6b88gJklzriavPJixZysZPkZ
github.com/getlantern/systray v1.1.0/go.mod h1:AecygODWIsBquJCJFop8MEQcJbWFfw/1yWbVabNgpCM=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
github.com/go-chi/chi v1.5.4 h1:QHdzF2szwjqVV4wmByUnTcsbIg7UGaQ0tPF2t5GcAIs=
github.com/go-chi/chi v1.5.4/go.mod h1:uaf8YgoFazUOkPBG7fxPftUylNumIev9awIWOENIuEg=
github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/chi/v5 v5.0.8-0.20220103230436-7dbe9a0bd10f h1:6kLofhLkWj7lgCc+mvcVLnwhTzQYgL/yW/Y0e/JYwjg=
github.com/go-chi/chi/v5 v5.0.8-0.20220103230436-7dbe9a0bd10f/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
Expand Down Expand Up @@ -487,13 +485,13 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/skycoin/dmsg v0.0.0-20220309150149-59567d358f03 h1:7nIQo/3Sd61jnyreu6uvMAFH3AFzf8rTMSz787Ve7R8=
github.com/skycoin/dmsg v0.0.0-20220309150149-59567d358f03/go.mod h1:2VdIS6SfIBVDniDhDVfsFjCe8oz6B3lTfkItzdvxt78=
github.com/skycoin/dmsg v0.0.0-20220329122357-2e8d4715d14f h1:wzQdtwmKSTgPPcOh/OQtOPiVeOFD25+jjLwKvb79LD0=
github.com/skycoin/dmsg v0.0.0-20220329122357-2e8d4715d14f/go.mod h1:bUiu+qaWcuH4SJudhjBPqv0hecc0V73DnsHRTh5TuyU=
github.com/skycoin/noise v0.0.0-20180327030543-2492fe189ae6 h1:1Nc5EBY6pjfw1kwW0duwyG+7WliWz5u9kgk1h5MnLuA=
github.com/skycoin/noise v0.0.0-20180327030543-2492fe189ae6/go.mod h1:UXghlricA7J3aRD/k7p/zBObQfmBawwCxIVPVjz2Q3o=
github.com/skycoin/skycoin v0.27.1 h1:HatxsRwVSPaV4qxH6290xPBmkH/HgiuAoY2qC+e8C9I=
github.com/skycoin/skycoin v0.27.1/go.mod h1:78nHjQzd8KG0jJJVL/j0xMmrihXi70ti63fh8vXScJw=
github.com/skycoin/skywire-utilities v0.0.0-20220308074734-3ac20b7c3254/go.mod h1:7l3pPv/3lGaa9mdni0wvXxSOLql36u3i2SDXhZOi78s=
github.com/skycoin/skywire-utilities v0.0.0-20220315050606-172bb2cd90d9/go.mod h1:9fOsut+rqCBd33NPF3cuolXrw8uQESYshSvdYMaZNEo=
github.com/skycoin/skywire-utilities v0.0.0-20220321002722-7d4b15ff5211 h1:iEQL310u/j/cljfyI7m9WjBycPiRiTl5auLRWljlpyk=
github.com/skycoin/skywire-utilities v0.0.0-20220321002722-7d4b15ff5211/go.mod h1:9fOsut+rqCBd33NPF3cuolXrw8uQESYshSvdYMaZNEo=
github.com/skycoin/yamux v0.0.0-20200803175205-571ceb89da9f h1:A5dEM1OE9YhN3LciZU9qPjo7fJ46JeHNi3JCroDkK0Y=
Expand Down
2 changes: 1 addition & 1 deletion internal/vpn/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/skycoin/dmsg/dmsgget"
"github.com/skycoin/dmsg/pkg/dmsgget"

"github.com/skycoin/skywire-utilities/pkg/cipher"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/appnet/addr.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire/pkg/routing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/appnet/addr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net"
"testing"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/stretchr/testify/require"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/appnet/dmsg_networker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
)

// DmsgNetworker implements `Networker` for dmsg network.
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/appserver/rpc_ingress_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"golang.org/x/net/nettest"
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/appserver/rpc_ingress_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"syscall"

"github.com/sirupsen/logrus"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire/pkg/app/appcommon"
Expand Down
4 changes: 2 additions & 2 deletions pkg/dmsgc/dmsgc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net/http"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/disc"
"github.com/skycoin/dmsg/pkg/disc"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/router/route_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"

"github.com/skycoin/dmsg/ioutil"
"github.com/skycoin/dmsg/pkg/ioutil"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire/pkg/routing"
Expand Down
4 changes: 2 additions & 2 deletions pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"sync"
"time"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/noise"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/dmsg/pkg/noise"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/router/routerclient/dmsg_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire/pkg/transport/network"
Expand Down
4 changes: 2 additions & 2 deletions pkg/setup/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/sirupsen/logrus"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/disc"
"github.com/skycoin/dmsg/pkg/disc"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/setup/setupclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"net/rpc"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/setup/setupclient/mock_route_group_dialer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/setup/setupclient/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/google/uuid"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/network/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"sync"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
4 changes: 2 additions & 2 deletions pkg/transport/network/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"time"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/noise"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/dmsg/pkg/noise"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/network/dmsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/cipher"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/network/handshake/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net"
"time"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/cipher"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/network/handshake/handshake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/network/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"sync"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/cipher"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/network/sudph.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/AudriusButkevicius/pfilter"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/xtaci/kcp-go"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/setup/visor.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"net/rpc"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
4 changes: 2 additions & 2 deletions pkg/visor/dmsgtracker/dmsg_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/sirupsen/logrus"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/dmsgctrl"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/dmsg/pkg/dmsgctrl"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
6 changes: 3 additions & 3 deletions pkg/visor/dmsgtracker/dmsg_tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/dmsgctrl"
"github.com/skycoin/dmsg/dmsgtest"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/dmsg/pkg/dmsgctrl"
"github.com/skycoin/dmsg/pkg/dmsgtest"
"github.com/skycoin/skycoin/src/util/logging"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions pkg/visor/hypervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/go-chi/chi/v5/middleware"
"github.com/google/uuid"
"github.com/sirupsen/logrus"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/dmsgpty"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/dmsg/pkg/dmsgpty"
"github.com/skycoin/skycoin/src/util/logging"
"nhooyr.io/websocket"

Expand Down
14 changes: 7 additions & 7 deletions pkg/visor/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import (

"github.com/ccding/go-stun/stun"
"github.com/sirupsen/logrus"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/direct"
dmsgdisc "github.com/skycoin/dmsg/disc"
"github.com/skycoin/dmsg/dmsgctrl"
"github.com/skycoin/dmsg/dmsgget"
"github.com/skycoin/dmsg/dmsghttp"
"github.com/skycoin/dmsg/dmsgpty"
"github.com/skycoin/dmsg/pkg/direct"
dmsgdisc "github.com/skycoin/dmsg/pkg/disc"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/dmsg/pkg/dmsgctrl"
"github.com/skycoin/dmsg/pkg/dmsgget"
"github.com/skycoin/dmsg/pkg/dmsghttp"
"github.com/skycoin/dmsg/pkg/dmsgpty"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/visor/rpc_client_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/sirupsen/logrus"
"github.com/skycoin/dmsg"
"github.com/skycoin/dmsg/pkg/dmsg"

"github.com/skycoin/skywire-utilities/pkg/netutil"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/visor/visor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"sync"
"time"

"github.com/skycoin/dmsg"
dmsgdisc "github.com/skycoin/dmsg/disc"
dmsgdisc "github.com/skycoin/dmsg/pkg/disc"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
2 changes: 1 addition & 1 deletion pkg/visor/visorconfig/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package visorconfig

import (
"github.com/skycoin/dmsg/disc"
"github.com/skycoin/dmsg/pkg/disc"
"github.com/skycoin/skycoin/src/util/logging"

"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down
5 changes: 5 additions & 0 deletions vendor/github.com/skycoin/dmsg/dmsg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f1728e1

Please sign in to comment.