Skip to content

Commit

Permalink
Update default config generation to use new services.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Lin committed Sep 25, 2019
1 parent dff1bda commit cb890e6
Show file tree
Hide file tree
Showing 39 changed files with 59 additions and 50 deletions.
2 changes: 1 addition & 1 deletion cmd/apps/therealssh-client/therealssh-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"flag"
"net/http"

"github.com/sirupsen/logrus"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/sirupsen/logrus"

"github.com/SkycoinProject/skywire-mainnet/pkg/app"
ssh "github.com/SkycoinProject/skywire-mainnet/pkg/therealssh"
Expand Down
2 changes: 1 addition & 1 deletion cmd/apps/therealssh/therealssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package main
import (
"flag"

"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/mitchellh/go-homedir"
"github.com/sirupsen/logrus"
"github.com/SkycoinProject/skycoin/src/util/logging"

"github.com/SkycoinProject/skywire-mainnet/pkg/app"
ssh "github.com/SkycoinProject/skywire-mainnet/pkg/therealssh"
Expand Down
4 changes: 2 additions & 2 deletions cmd/messaging-server/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"os"
"path/filepath"

"github.com/prometheus/client_golang/prometheus/promhttp"
logrussyslog "github.com/sirupsen/logrus/hooks/syslog"
"github.com/SkycoinProject/dmsg"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/dmsg/disc"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/prometheus/client_golang/prometheus/promhttp"
logrussyslog "github.com/sirupsen/logrus/hooks/syslog"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/setup-node/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"net/http"
"os"

"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/prometheus/client_golang/prometheus/promhttp"
logrussyslog "github.com/sirupsen/logrus/hooks/syslog"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/spf13/cobra"

"github.com/SkycoinProject/skywire-mainnet/pkg/metrics"
Expand Down
6 changes: 3 additions & 3 deletions cmd/skywire-cli/commands/node/gen-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func defaultConfig() *visor.Config {
conf.Node.StaticPubKey = pk
conf.Node.StaticSecKey = sk

conf.Messaging.Discovery = "https://messaging.discovery.skywire.skycoin.net"
conf.Messaging.Discovery = "https://messaging.discovery.skywire.skycoin.com"
conf.Messaging.ServerCount = 1

passcode := base64.StdEncoding.EncodeToString(cipher.RandByte(8))
Expand All @@ -93,11 +93,11 @@ func defaultConfig() *visor.Config {
}
conf.TrustedNodes = []cipher.PubKey{}

conf.Transport.Discovery = "https://transport.discovery.skywire.skycoin.net"
conf.Transport.Discovery = "https://transport.discovery.skywire.skycoin.com"
conf.Transport.LogStore.Type = "file"
conf.Transport.LogStore.Location = "./skywire/transport_logs"

conf.Routing.RouteFinder = "https://routefinder.skywire.skycoin.net/"
conf.Routing.RouteFinder = "https://routefinder.skywire.skycoin.com/"

const defaultSetupNodePK = "0324579f003e6b4048bae2def4365e634d8e0e3054a20fc7af49daf2a179658557"
sPK := cipher.PubKey{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/skywire-cli/commands/tpdisc/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"text/tabwriter"
"time"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/google/uuid"
"github.com/spf13/cobra"

"github.com/SkycoinProject/skywire-mainnet/cmd/skywire-cli/internal"
Expand Down
2 changes: 1 addition & 1 deletion cmd/skywire-cli/internal/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package internal
import (
"fmt"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/google/uuid"
)

var log = logging.MustGetLogger("skywire-cli")
Expand Down
3 changes: 2 additions & 1 deletion cmd/skywire-visor/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ import (
"syscall"
"time"

"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/pkg/profile"
logrussyslog "github.com/sirupsen/logrus/hooks/syslog"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/spf13/cobra"

"github.com/SkycoinProject/skywire-mainnet/internal/utclient"
"github.com/SkycoinProject/skywire-mainnet/pkg/util/pathutil"
"github.com/SkycoinProject/skywire-mainnet/pkg/visor"
Expand Down
2 changes: 1 addition & 1 deletion cmd/therealssh-cli/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"syscall"
"time"

"github.com/creack/pty"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/creack/pty"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal"

Expand Down
2 changes: 1 addition & 1 deletion internal/therealproxy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io"
"net"

"github.com/hashicorp/yamux"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/hashicorp/yamux"
)

// Log is therealproxy package level logger, it can be replaced with a different one from outside the package
Expand Down
2 changes: 1 addition & 1 deletion internal/therealproxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"net"

"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/armon/go-socks5"
"github.com/hashicorp/yamux"
"github.com/SkycoinProject/skycoin/src/util/logging"
)

// Server implements multiplexing proxy server using yamux.
Expand Down
2 changes: 1 addition & 1 deletion pkg/httputil/httputil.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net"
"net/http"

"github.com/gorilla/handlers"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/gorilla/handlers"
)

var log = logging.MustGetLogger("httputil")
Expand Down
7 changes: 4 additions & 3 deletions pkg/hypervisor/hypervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import (
"sync"
"time"

"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/dmsg/noise"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"github.com/google/uuid"

"github.com/SkycoinProject/skywire-mainnet/pkg/app"
"github.com/SkycoinProject/skywire-mainnet/pkg/httputil"
"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
Expand Down
6 changes: 3 additions & 3 deletions pkg/router/route_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"net"
"time"

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

"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
"github.com/SkycoinProject/skywire-mainnet/pkg/setup"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
)

// RMConfig represents route manager configuration.
Expand Down
2 changes: 1 addition & 1 deletion pkg/router/route_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/SkycoinProject/skywire-mainnet/pkg/setup"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet/snettest"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"github.com/SkycoinProject/skycoin/src/util/logging"

"github.com/SkycoinProject/skywire-mainnet/pkg/app"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
routeFinder "github.com/SkycoinProject/skywire-mainnet/pkg/route-finder/client"
"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
"github.com/SkycoinProject/skywire-mainnet/pkg/setup"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
"github.com/SkycoinProject/skywire-mainnet/pkg/transport"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/router/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import (
"testing"
"time"

"github.com/sirupsen/logrus"
"github.com/SkycoinProject/dmsg"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

routeFinder "github.com/SkycoinProject/skywire-mainnet/pkg/route-finder/client"
"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet/snettest"
"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
"github.com/SkycoinProject/skywire-mainnet/pkg/transport"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/routing/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package routing
import (
"fmt"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/google/uuid"
)

// Hop defines a route hop between 2 nodes.
Expand Down
2 changes: 1 addition & 1 deletion pkg/routing/routing_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/google/uuid"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/routing/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"time"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/google/uuid"
)

// RuleHeaderSize represents the base size of a rule.
Expand Down
2 changes: 1 addition & 1 deletion pkg/routing/rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"time"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/setup/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/SkycoinProject/dmsg/disc"
"github.com/SkycoinProject/skycoin/src/util/logging"

"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
"github.com/SkycoinProject/skywire-mainnet/pkg/metrics"
"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
)

// Node performs routes setup operations over messaging channel.
Expand Down
4 changes: 2 additions & 2 deletions pkg/setup/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"testing"
"time"

"github.com/SkycoinProject/dmsg"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/dmsg"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/dmsg/disc"
"github.com/stretchr/testify/require"
"golang.org/x/net/nettest"
Expand Down
2 changes: 1 addition & 1 deletion pkg/therealssh/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strings"
"sync"

"github.com/creack/pty"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/creack/pty"

"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/therealssh/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"time"

"github.com/creack/pty"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/creack/pty"

"github.com/SkycoinProject/skywire-mainnet/internal/netutil"
"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/therealssh/pty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"os/user"
"testing"

"github.com/creack/pty"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/creack/pty"
"github.com/stretchr/testify/require"

"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/therealssh/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"sync"
"syscall"

"github.com/creack/pty"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/creack/pty"
)

// Log is the package level logger, which can be replaced from outside
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport-discovery/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"io/ioutil"
"net/http"

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

"github.com/SkycoinProject/skywire-mainnet/internal/httpauth"
"github.com/SkycoinProject/skywire-mainnet/pkg/transport"
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"
"time"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/google/uuid"
)

// DiscoveryClient performs Transport discovery operations.
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/google/uuid"
)

// Entry is the unsigned representation of a Transport.
Expand Down
3 changes: 2 additions & 1 deletion pkg/transport/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"fmt"
"io"

"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
"github.com/SkycoinProject/dmsg/cipher"

"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
)

func makeEntry(pk1, pk2 cipher.PubKey, tpType string) Entry {
Expand Down
3 changes: 2 additions & 1 deletion pkg/transport/managed_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"sync"
"sync/atomic"
"time"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"

"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"

"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/skycoin/src/util/logging"
Expand Down
4 changes: 2 additions & 2 deletions pkg/transport/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"strings"
"sync"

"github.com/SkycoinProject/skywire-mainnet/pkg/snet"
"github.com/SkycoinProject/skywire-mainnet/pkg/routing"
"github.com/SkycoinProject/skywire-mainnet/pkg/snet"

"github.com/google/uuid"
"github.com/SkycoinProject/dmsg/cipher"
"github.com/SkycoinProject/skycoin/src/util/logging"
"github.com/google/uuid"
)

// ManagerConfig configures a Manager.
Expand Down
Loading

0 comments on commit cb890e6

Please sign in to comment.