Skip to content

Commit

Permalink
Package name changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
can1357 committed Mar 4, 2024
1 parent 31613d0 commit 4fb47a2
Show file tree
Hide file tree
Showing 100 changed files with 268 additions and 271 deletions.
2 changes: 1 addition & 1 deletion autonats/logger_adapter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package autonats

import "github.com/pme-sh/pmesh/xlog"
import "get.pme.sh/pmesh/xlog"

type Logger struct {
*xlog.Logger
Expand Down
10 changes: 5 additions & 5 deletions autonats/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"strconv"
"strings"

"github.com/pme-sh/pmesh/config"
"github.com/pme-sh/pmesh/netx"
"github.com/pme-sh/pmesh/security"
"github.com/pme-sh/pmesh/tlsmux"
"github.com/pme-sh/pmesh/xlog"
"get.pme.sh/pmesh/config"
"get.pme.sh/pmesh/netx"
"get.pme.sh/pmesh/security"
"get.pme.sh/pmesh/tlsmux"
"get.pme.sh/pmesh/xlog"

"github.com/nats-io/nats.go"
"github.com/samber/lo"
Expand Down
4 changes: 2 additions & 2 deletions autonats/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"sync/atomic"
"time"

"github.com/pme-sh/pmesh/tlsmux"
"get.pme.sh/pmesh/tlsmux"

natssrv "github.com/nats-io/nats-server/v2/server"
natssrv "get.pme.sh/pnats/server"
"github.com/nats-io/nats.go"
"github.com/nats-io/nats.go/jetstream"
"github.com/samber/lo"
Expand Down
2 changes: 1 addition & 1 deletion autonats/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"time"

natssrv "github.com/nats-io/nats-server/v2/server"
natssrv "get.pme.sh/pnats/server"
"github.com/nats-io/nats.go"
)

Expand Down
4 changes: 2 additions & 2 deletions client/api_control.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package client

import (
"github.com/pme-sh/pmesh/session"
"github.com/pme-sh/pmesh/xpost"
"get.pme.sh/pmesh/session"
"get.pme.sh/pmesh/xpost"

"github.com/nats-io/nats.go/jetstream"
)
Expand Down
2 changes: 1 addition & 1 deletion client/api_ipinfo.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

import "github.com/pme-sh/pmesh/session"
import "get.pme.sh/pmesh/session"

func (c Client) QueryIP(ip string) (info session.IPInfoResult, err error) {
err = c.Call("/ipinfo", session.IPInfoQuery{IP: ip}, &info)
Expand Down
2 changes: 1 addition & 1 deletion client/api_kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"encoding/json"

"github.com/pme-sh/pmesh/session"
"get.pme.sh/pmesh/session"
)

func (c Client) KV(key string) (res session.KVState, err error) {
Expand Down
2 changes: 1 addition & 1 deletion client/api_lambda.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/pme-sh/pmesh/session"
"get.pme.sh/pmesh/session"
)

func (c Client) Lambdas() (res map[string]session.Lambda, err error) {
Expand Down
8 changes: 4 additions & 4 deletions client/api_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"sync"
"time"

"github.com/pme-sh/pmesh/pmtp"
"github.com/pme-sh/pmesh/ray"
"github.com/pme-sh/pmesh/xlog"
"github.com/pme-sh/pmesh/xpost"
"get.pme.sh/pmesh/pmtp"
"get.pme.sh/pmesh/ray"
"get.pme.sh/pmesh/xlog"
"get.pme.sh/pmesh/xpost"

"github.com/samber/lo"
)
Expand Down
2 changes: 1 addition & 1 deletion client/api_metrics.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

import "github.com/pme-sh/pmesh/session"
import "get.pme.sh/pmesh/session"

func (c Client) SystemMetrics() (m session.SystemMetrics, err error) {
err = c.Call("/system", nil, &m)
Expand Down
2 changes: 1 addition & 1 deletion client/api_rev.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/pme-sh/pmesh/session"
"get.pme.sh/pmesh/session"
)

func (c Client) GetRepoInfo() (info session.RepoInfo, err error) {
Expand Down
4 changes: 2 additions & 2 deletions client/api_service.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package client

import (
"github.com/pme-sh/pmesh/session"
"github.com/pme-sh/pmesh/snowflake"
"get.pme.sh/pmesh/session"
"get.pme.sh/pmesh/snowflake"
)

func (c Client) ServiceHealth(name string) (h session.ServiceHealth, err error) {
Expand Down
2 changes: 1 addition & 1 deletion client/api_sign.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

import "github.com/pme-sh/pmesh/urlsigner"
import "get.pme.sh/pmesh/urlsigner"

func (c Client) SignURL(p urlsigner.Options) (res string, err error) {
err = c.Call("/sign", p, &res)
Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/pme-sh/pmesh/pmtp"
"get.pme.sh/pmesh/pmtp"
)

type Client struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/api_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os"
"time"

"github.com/pme-sh/pmesh/config"
"github.com/pme-sh/pmesh/rundown"
"github.com/pme-sh/pmesh/xlog"
"get.pme.sh/pmesh/config"
"get.pme.sh/pmesh/rundown"
"get.pme.sh/pmesh/xlog"

"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down
4 changes: 2 additions & 2 deletions cmd/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"fmt"

"github.com/pme-sh/pmesh/config"
"github.com/pme-sh/pmesh/ui"
"get.pme.sh/pmesh/config"
"get.pme.sh/pmesh/ui"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"strings"

"github.com/pme-sh/pmesh/config"
"get.pme.sh/pmesh/config"

"github.com/samber/lo"
"github.com/spf13/cobra"
Expand Down
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"log"
"os"

"github.com/pme-sh/pmesh/client"
"github.com/pme-sh/pmesh/config"
"github.com/pme-sh/pmesh/pmtp"
"get.pme.sh/pmesh/client"
"get.pme.sh/pmesh/config"
"get.pme.sh/pmesh/pmtp"

"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"strings"

"github.com/pme-sh/pmesh/config"
"github.com/pme-sh/pmesh/setuputil"
"github.com/pme-sh/pmesh/ui"
"get.pme.sh/pmesh/config"
"get.pme.sh/pmesh/setuputil"
"get.pme.sh/pmesh/ui"

"github.com/samber/lo"
"github.com/spf13/cobra"
Expand Down
10 changes: 5 additions & 5 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"path/filepath"
"strings"

"github.com/pme-sh/pmesh/config"
"github.com/pme-sh/pmesh/lyml"
"github.com/pme-sh/pmesh/service"
"github.com/pme-sh/pmesh/session"
"github.com/pme-sh/pmesh/setuputil"
"get.pme.sh/pmesh/config"
"get.pme.sh/pmesh/lyml"
"get.pme.sh/pmesh/service"
"get.pme.sh/pmesh/session"
"get.pme.sh/pmesh/setuputil"

"github.com/alecthomas/chroma/v2/quick"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cpuhist/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync/atomic"
"time"

"github.com/pme-sh/pmesh/concurrent"
"get.pme.sh/pmesh/concurrent"

"github.com/shirou/gopsutil/v3/cpu"
"github.com/shirou/gopsutil/v3/host"
Expand Down
4 changes: 2 additions & 2 deletions enats/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"time"

"github.com/pme-sh/pmesh/autonats"
"github.com/pme-sh/pmesh/config"
"get.pme.sh/pmesh/autonats"
"get.pme.sh/pmesh/config"

"github.com/nats-io/nats.go"
"github.com/nats-io/nats.go/jetstream"
Expand Down
4 changes: 2 additions & 2 deletions enats/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strconv"
"strings"

"github.com/pme-sh/pmesh/config"
"github.com/pme-sh/pmesh/xlog"
"get.pme.sh/pmesh/config"
"get.pme.sh/pmesh/xlog"
)

var AnyCastMachineID = config.MachineID(0)
Expand Down
2 changes: 1 addition & 1 deletion glob/glob.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"regexp"

"github.com/pme-sh/pmesh/glob/gocodewalker"
"get.pme.sh/pmesh/glob/gocodewalker"
)

type File = gocodewalker.File
Expand Down
55 changes: 25 additions & 30 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,87 +1,85 @@
module github.com/pme-sh/pmesh
module get.pme.sh/pmesh

go 1.22

require (
get.pme.sh/pnats v0.0.0-20240304004023-26bb5a137ed0
github.com/alecthomas/chroma/v2 v2.12.0
github.com/andybalholm/brotli v1.1.0
github.com/boyter/gocodewalker v1.2.0
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/charmbracelet/lipgloss v0.9.1
github.com/erikgeiser/promptkit v0.9.0
github.com/go-git/go-git/v5 v5.11.0
github.com/gofrs/flock v0.8.1
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/gorilla/schema v1.2.1
github.com/gorilla/websocket v1.5.1
github.com/hashicorp/yamux v0.1.1
github.com/icza/backscanner v0.0.0-20240221180818-f23e3ba0e79f
github.com/muesli/reflow v0.3.0
github.com/natefinch/atomic v1.0.1
github.com/nats-io/nats-server/v2 v2.10.11
github.com/nats-io/nats.go v1.33.1
github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.32.0
github.com/samber/lo v1.39.0
github.com/samber/slog-zerolog/v2 v2.2.0
github.com/shirou/gopsutil/v3 v3.24.1
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
github.com/valyala/fastjson v1.6.4
github.com/yuin/gopher-lua v1.1.1
go.uber.org/automaxprocs v1.5.3
golang.org/x/net v0.21.0
golang.org/x/sync v0.6.0
golang.org/x/term v0.17.0
gopkg.in/natefinch/lumberjack.v2 v2.2.1
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/rivo/uniseg v0.4.6 // indirect
github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f // indirect
github.com/samber/slog-common v0.14.0 // indirect
)

require (
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/alecthomas/chroma/v2 v2.12.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/erikgeiser/promptkit v0.9.0
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/icza/backscanner v0.0.0-20240221180818-f23e3ba0e79f
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.17.7 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/lufia/plan9stats v0.0.0-20231016141302-07b5767bb0ed // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/nats-io/jwt/v2 v2.5.5 // indirect
github.com/nats-io/nkeys v0.4.7 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
github.com/rs/zerolog v1.32.0
github.com/rivo/uniseg v0.4.6 // indirect
github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f // indirect
github.com/samber/slog-common v0.14.0 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/skeema/knownhosts v1.2.1 // indirect
github.com/spf13/pflag v1.0.5
github.com/tklauser/go-sysconf v0.3.13 // indirect
github.com/tklauser/numcpus v0.7.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
Expand All @@ -93,10 +91,7 @@ require (
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.18.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1
gopkg.in/warnings.v0 v0.1.2 // indirect
)

replace github.com/muesli/reflow v0.3.0 => github.com/mikelorant/reflow v0.0.0-20240129221507-7edce3ea0d5b

replace github.com/nats-io/nats-server/v2 v2.10.11 => github.com/pme-sh/nats-server/v2 v2.0.0-20240303190446-71281f459505
//replace github.com/muesli/reflow v0.3.0 => github.com/mikelorant/reflow v0.0.0-20240129221507-7edce3ea0d5b
Loading

0 comments on commit 4fb47a2

Please sign in to comment.