diff --git a/README.md b/README.md index ff1c3d5..ed18f33 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ [![Go Reference](https://pkg.go.dev/badge/github.com/1995parham/pakhshi.svg)](https://pkg.go.dev/github.com/1995parham/pakhshi) [![Codecov](https://img.shields.io/codecov/c/gh/1995parham/pakhshi?logo=codecov&style=flat-square)](https://codecov.io/gh/1995parham/pakhshi) - ## Introduction Consider you have an array of brokers but you want to publish and subscribe on all of them at the same time. diff --git a/cmd/pakhshi/main.go b/cmd/pakhshi/main.go index 056e891..a079f25 100644 --- a/cmd/pakhshi/main.go +++ b/cmd/pakhshi/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/1995parham/pakhshi/internal/cmd" + "github.com/snapp-incubator/pakhshi/internal/cmd" "github.com/pterm/pterm" ) diff --git a/go.mod b/go.mod index 3b3ebd8..785a460 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,27 @@ -module github.com/1995parham/pakhshi +module github.com/snapp-incubator/pakhshi -go 1.16 +go 1.17 require ( github.com/eclipse/paho.mqtt.golang v1.3.4 github.com/pterm/pterm v0.12.22 github.com/spf13/cobra v1.1.3 - github.com/stretchr/testify v1.7.0 // indirect + github.com/stretchr/testify v1.7.0 +) + +require ( + github.com/atomicgo/cursor v0.0.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/gookit/color v1.4.2 // indirect + github.com/gorilla/websocket v1.4.2 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/mattn/go-runewidth v0.0.13 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect + golang.org/x/net v0.0.0-20200425230154-ff2c4b7c35a0 // indirect + golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44 // indirect + golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/go.sum b/go.sum index b3f7eeb..6d8dc37 100644 --- a/go.sum +++ b/go.sum @@ -172,7 +172,6 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= diff --git a/internal/cmd/publish/main.go b/internal/cmd/publish/main.go index 183307a..e7ad0e5 100644 --- a/internal/cmd/publish/main.go +++ b/internal/cmd/publish/main.go @@ -1,7 +1,7 @@ package publish import ( - "github.com/1995parham/pakhshi/pkg/client" + "github.com/snapp-incubator/pakhshi/pkg/client" mqtt "github.com/eclipse/paho.mqtt.golang" "github.com/pterm/pterm" "github.com/spf13/cobra" diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 94fa5f5..cd6ed9b 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -3,8 +3,8 @@ package cmd import ( "os" - "github.com/1995parham/pakhshi/internal/cmd/publish" - "github.com/1995parham/pakhshi/internal/cmd/subscribe" + "github.com/snapp-incubator/pakhshi/internal/cmd/publish" + "github.com/snapp-incubator/pakhshi/internal/cmd/subscribe" "github.com/pterm/pterm" "github.com/spf13/cobra" ) diff --git a/internal/cmd/subscribe/main.go b/internal/cmd/subscribe/main.go index d065df9..2507aed 100644 --- a/internal/cmd/subscribe/main.go +++ b/internal/cmd/subscribe/main.go @@ -5,7 +5,7 @@ import ( "os/signal" "syscall" - "github.com/1995parham/pakhshi/pkg/client" + "github.com/snapp-incubator/pakhshi/pkg/client" mqtt "github.com/eclipse/paho.mqtt.golang" "github.com/pterm/pterm" "github.com/spf13/cobra" diff --git a/pkg/client/client.go b/pkg/client/client.go index 85a4c89..534c7b5 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -3,8 +3,8 @@ package client import ( "net/url" - "github.com/1995parham/pakhshi/pkg/token" mqtt "github.com/eclipse/paho.mqtt.golang" + "github.com/snapp-incubator/pakhshi/pkg/token" ) // NewClient creates a pakhshi client based on given paho options. diff --git a/test/client_test.go b/test/client_test.go index 80c5d70..8459ac6 100644 --- a/test/client_test.go +++ b/test/client_test.go @@ -3,7 +3,7 @@ package main_test import ( "testing" - "github.com/1995parham/pakhshi/pkg/client" + "github.com/snapp-incubator/pakhshi/pkg/client" mqtt "github.com/eclipse/paho.mqtt.golang" "github.com/stretchr/testify/assert" )