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

switch to a maintained uuid library #150

Open
wants to merge 2 commits into
base: v3.0
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net/http"
"time"

"github.com/google/uuid"
"github.com/segmentio/backo-go"
"github.com/xtgo/uuid"
)

// Instances of this type carry the different configuration options that may
Expand Down Expand Up @@ -169,5 +169,5 @@ func makeConfig(c Config) Config {
// This function returns a string representation of a UUID, it's the default
// function used for generating unique IDs.
func uid() string {
return uuid.NewRandom().String()
return uuid.New().String()
}
8 changes: 8 additions & 0 deletions vendor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
github.com/google/uuid v1.1.1
github.com/segmentio/backo-go 204274ad699c0983a70203a566887f17a717fef4
github.com/segmentio/conf v1.1.0
github.com/segmentio/go-snakecase v1.1.0
github.com/segmentio/objconv v1.0.1
gopkg.in/go-playground/mold.v2 v2.2.0
gopkg.in/validator.v2 135c24b11c19e52befcae2ec3fca5d9b78c4e98e
gopkg.in/yaml.v2 v2.2.2

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

19 changes: 19 additions & 0 deletions vendor/github.com/google/uuid/README.md

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

80 changes: 80 additions & 0 deletions vendor/github.com/google/uuid/dce.go

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

12 changes: 12 additions & 0 deletions vendor/github.com/google/uuid/doc.go

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

53 changes: 53 additions & 0 deletions vendor/github.com/google/uuid/hash.go

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

37 changes: 37 additions & 0 deletions vendor/github.com/google/uuid/marshal.go

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

90 changes: 90 additions & 0 deletions vendor/github.com/google/uuid/node.go

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

12 changes: 12 additions & 0 deletions vendor/github.com/google/uuid/node_js.go

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

33 changes: 33 additions & 0 deletions vendor/github.com/google/uuid/node_net.go

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

Loading