feat: update package name to snapp-incubator

This commit is contained in:
Parham Alvani
2021-09-08 14:19:08 +04:30
parent 7bfd9aaa4a
commit 6af1ae3f2f
9 changed files with 27 additions and 12 deletions

View File

@@ -6,7 +6,6 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/1995parham/pakhshi.svg)](https://pkg.go.dev/github.com/1995parham/pakhshi) [![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) [![Codecov](https://img.shields.io/codecov/c/gh/1995parham/pakhshi?logo=codecov&style=flat-square)](https://codecov.io/gh/1995parham/pakhshi)
## Introduction ## Introduction
Consider you have an array of brokers but you want to publish and subscribe on all of them at the same time. Consider you have an array of brokers but you want to publish and subscribe on all of them at the same time.

View File

@@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/1995parham/pakhshi/internal/cmd" "github.com/snapp-incubator/pakhshi/internal/cmd"
"github.com/pterm/pterm" "github.com/pterm/pterm"
) )

23
go.mod
View File

@@ -1,10 +1,27 @@
module github.com/1995parham/pakhshi module github.com/snapp-incubator/pakhshi
go 1.16 go 1.17
require ( require (
github.com/eclipse/paho.mqtt.golang v1.3.4 github.com/eclipse/paho.mqtt.golang v1.3.4
github.com/pterm/pterm v0.12.22 github.com/pterm/pterm v0.12.22
github.com/spf13/cobra v1.1.3 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
) )

1
go.sum
View File

@@ -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/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= 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.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/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.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=

View File

@@ -1,7 +1,7 @@
package publish package publish
import ( import (
"github.com/1995parham/pakhshi/pkg/client" "github.com/snapp-incubator/pakhshi/pkg/client"
mqtt "github.com/eclipse/paho.mqtt.golang" mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/pterm/pterm" "github.com/pterm/pterm"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View File

@@ -3,8 +3,8 @@ package cmd
import ( import (
"os" "os"
"github.com/1995parham/pakhshi/internal/cmd/publish" "github.com/snapp-incubator/pakhshi/internal/cmd/publish"
"github.com/1995parham/pakhshi/internal/cmd/subscribe" "github.com/snapp-incubator/pakhshi/internal/cmd/subscribe"
"github.com/pterm/pterm" "github.com/pterm/pterm"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@@ -5,7 +5,7 @@ import (
"os/signal" "os/signal"
"syscall" "syscall"
"github.com/1995parham/pakhshi/pkg/client" "github.com/snapp-incubator/pakhshi/pkg/client"
mqtt "github.com/eclipse/paho.mqtt.golang" mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/pterm/pterm" "github.com/pterm/pterm"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View File

@@ -3,8 +3,8 @@ package client
import ( import (
"net/url" "net/url"
"github.com/1995parham/pakhshi/pkg/token"
mqtt "github.com/eclipse/paho.mqtt.golang" mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/snapp-incubator/pakhshi/pkg/token"
) )
// NewClient creates a pakhshi client based on given paho options. // NewClient creates a pakhshi client based on given paho options.

View File

@@ -3,7 +3,7 @@ package main_test
import ( import (
"testing" "testing"
"github.com/1995parham/pakhshi/pkg/client" "github.com/snapp-incubator/pakhshi/pkg/client"
mqtt "github.com/eclipse/paho.mqtt.golang" mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )