Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg satori/go.uuid replaced by google/uuid #13

Merged
merged 1 commit into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"time"

"github.com/satori/go.uuid"
"github.com/google/uuid"
)

const (
Expand Down Expand Up @@ -44,10 +44,8 @@ type Client struct {
}

func NewClient(serverURL string, token string) HEC {
id, err := uuid.NewV4()
if err != nil {
panic(err)
}
id := uuid.New()

return &Client{
httpClient: http.DefaultClient,
serverURL: serverURL,
Expand Down
8 changes: 3 additions & 5 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"sync"

"github.com/satori/go.uuid"
"github.com/google/uuid"
)

type Cluster struct {
Expand All @@ -21,10 +21,8 @@ type Cluster struct {
}

func NewCluster(serverURLs []string, token string) HEC {
id, err := uuid.NewV4()
if err != nil {
panic(err)
}
id := uuid.New()

channel := id.String()
clients := make([]*Client, len(serverURLs))
for i, serverURL := range serverURLs {
Expand Down
12 changes: 6 additions & 6 deletions glide.lock

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

4 changes: 2 additions & 2 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package: github.com/fuyufjh/splunk-hec-go
import:
- package: github.com/satori/go.uuid
version: master
- package: github.com/google/uuid
version: 1.0.0
testImport:
- package: github.com/stretchr/testify
version: ^1.1.4