Skip to content

Commit

Permalink
REFACT: Migrated to go modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrosewell committed Sep 3, 2021
1 parent 09c9fee commit d8bc10d
Show file tree
Hide file tree
Showing 10 changed files with 560 additions and 9 deletions.
3 changes: 2 additions & 1 deletion base.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ package swan

import (
"bytes"
"owid"

"github.com/SWAN-community/owid-go"
)

// Version used for persisting SWAN data structures.
Expand Down
3 changes: 2 additions & 1 deletion bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ package swan
import (
"bytes"
"fmt"
"owid"

"github.com/SWAN-community/owid-go"
)

// Bid contains the information about the advert to be displayed.
Expand Down
6 changes: 4 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ import (
"io/ioutil"
"net/http"
"net/url"
"owid"
"swift"

"github.com/SWAN-community/swift-go"

"github.com/SWAN-community/owid-go"
)

// SWAN is the base structure for all actions. It includes the scheme for the
Expand Down
3 changes: 2 additions & 1 deletion empty.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ package swan

import (
"bytes"
"owid"

"github.com/SWAN-community/owid-go"
)

// Empty contains nothing. Used for most OWIDs that just sign the root and
Expand Down
3 changes: 2 additions & 1 deletion failed.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ package swan
import (
"bytes"
"fmt"
"owid"

"github.com/SWAN-community/owid-go"
)

// Failed contains details about the request that was not signed by the
Expand Down
47 changes: 47 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module swan

go 1.17

require (
github.com/SWAN-community/owid-go v0.1.1
github.com/SWAN-community/swift-go v0.1.3
github.com/google/uuid v1.3.0
)

require (
cloud.google.com/go v0.75.0 // indirect
cloud.google.com/go/firestore v1.5.0 // indirect
cloud.google.com/go/storage v1.10.0 // indirect
firebase.google.com/go v3.13.0+incompatible // indirect
github.com/Azure/azure-sdk-for-go v48.2.0+incompatible // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.11 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.5 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/logger v0.2.0 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/aws/aws-sdk-go v1.35.28 // indirect
github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/google/go-cmp v0.5.4 // indirect
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jstemmer/go-junit-report v0.9.1 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
go.opencensus.io v0.22.5 // indirect
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 // indirect
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect
golang.org/x/mod v0.4.1 // indirect
golang.org/x/net v0.0.0-20201224014010-6772e930b67b // indirect
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 // indirect
golang.org/x/sys v0.0.0-20210223095934-7937bea0104d // indirect
golang.org/x/text v0.3.4 // indirect
golang.org/x/tools v0.1.0 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
google.golang.org/api v0.40.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c // indirect
google.golang.org/grpc v1.35.0 // indirect
google.golang.org/protobuf v1.25.0 // indirect
)
495 changes: 495 additions & 0 deletions go.sum

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion id.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import (
"bytes"
"encoding/base64"
"fmt"
"owid"
"strings"

"github.com/SWAN-community/owid-go"

"github.com/google/uuid"
)

Expand Down
3 changes: 2 additions & 1 deletion owid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ package swan

import (
"fmt"
"owid"

"github.com/SWAN-community/owid-go"
)

// WinningOWID gets the winning OWID.
Expand Down
3 changes: 2 additions & 1 deletion pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ package swan

import (
"net/http"
"owid"
"strings"
"time"

"github.com/SWAN-community/owid-go"
)

// Prefix added to the key for any SWAN values stored by the caller as cookies.
Expand Down

0 comments on commit d8bc10d

Please sign in to comment.