Skip to content

Commit

Permalink
refactor!: update module to v4
Browse files Browse the repository at this point in the history
BREAKING CHANGE: import paths will need to change to v4

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
  • Loading branch information
jinlinGuan committed Oct 23, 2024
1 parent 150c3d4 commit f858874
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/edgexfoundry/go-mod-registry/v3
module github.com/edgexfoundry/go-mod-registry/v4

go 1.23

require (
github.com/edgexfoundry/go-mod-core-contracts/v3 v3.2.0-dev.49
github.com/edgexfoundry/go-mod-core-contracts/v4 v4.0.0-dev.1
github.com/hashicorp/consul/api v1.29.4
github.com/stretchr/testify v1.9.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/edgexfoundry/go-mod-core-contracts/v3 v3.2.0-dev.49 h1:uBI0nA3oO9P2MWBR1Tcn/543u4GFfWXd4J9Gii6CB1k=
github.com/edgexfoundry/go-mod-core-contracts/v3 v3.2.0-dev.49/go.mod h1:MLk37/79M26+bZr3IptNZuYmQBEVbXwzDp1VHQkFhIk=
github.com/edgexfoundry/go-mod-core-contracts/v4 v4.0.0-dev.1 h1:nAKgq3FZNyCLUxus5j+4pT0vcmT1I5+4MJCUAaD8Pg8=
github.com/edgexfoundry/go-mod-core-contracts/v4 v4.0.0-dev.1/go.mod h1:I3EG+Tg/gcVSUJ+IJDuvVKFISnRu8oQtMXqltE1rzT8=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/consul/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

consulapi "github.com/hashicorp/consul/api"

"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v4/pkg/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/consul/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v4/pkg/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/keeper/authinjector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package keeper
import (
"net/http"

"github.com/edgexfoundry/go-mod-core-contracts/v3/clients/interfaces"
"github.com/edgexfoundry/go-mod-core-contracts/v4/clients/interfaces"
)

type emptyAuthenticationInjector struct {
Expand Down
18 changes: 9 additions & 9 deletions internal/pkg/keeper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (
"net/http"
"strings"

httpClient "github.com/edgexfoundry/go-mod-core-contracts/v3/clients/http"
"github.com/edgexfoundry/go-mod-core-contracts/v3/clients/interfaces"
"github.com/edgexfoundry/go-mod-core-contracts/v3/common"
"github.com/edgexfoundry/go-mod-core-contracts/v3/dtos"
dtoCommon "github.com/edgexfoundry/go-mod-core-contracts/v3/dtos/common"
"github.com/edgexfoundry/go-mod-core-contracts/v3/dtos/requests"
"github.com/edgexfoundry/go-mod-core-contracts/v3/models"

"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
httpClient "github.com/edgexfoundry/go-mod-core-contracts/v4/clients/http"
"github.com/edgexfoundry/go-mod-core-contracts/v4/clients/interfaces"
"github.com/edgexfoundry/go-mod-core-contracts/v4/common"
"github.com/edgexfoundry/go-mod-core-contracts/v4/dtos"
dtoCommon "github.com/edgexfoundry/go-mod-core-contracts/v4/dtos/common"
"github.com/edgexfoundry/go-mod-core-contracts/v4/dtos/requests"
"github.com/edgexfoundry/go-mod-core-contracts/v4/models"

"github.com/edgexfoundry/go-mod-registry/v4/pkg/types"
)

type keeperClient struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/keeper/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

"github.com/stretchr/testify/require"

"github.com/edgexfoundry/go-mod-core-contracts/v3/common"
"github.com/edgexfoundry/go-mod-core-contracts/v4/common"

"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v4/pkg/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/keeper/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package keeper

import "github.com/edgexfoundry/go-mod-core-contracts/v3/common"
import "github.com/edgexfoundry/go-mod-core-contracts/v4/common"

const (
ApiRegistrationByServiceIdRoute = common.ApiRegisterRoute + "/" + common.ServiceId + "/"
Expand Down
10 changes: 5 additions & 5 deletions internal/pkg/keeper/mock_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
"strings"
"sync"

"github.com/edgexfoundry/go-mod-core-contracts/v3/common"
"github.com/edgexfoundry/go-mod-core-contracts/v3/dtos"
dtoCommon "github.com/edgexfoundry/go-mod-core-contracts/v3/dtos/common"
"github.com/edgexfoundry/go-mod-core-contracts/v3/dtos/requests"
"github.com/edgexfoundry/go-mod-core-contracts/v3/dtos/responses"
"github.com/edgexfoundry/go-mod-core-contracts/v4/common"
"github.com/edgexfoundry/go-mod-core-contracts/v4/dtos"
dtoCommon "github.com/edgexfoundry/go-mod-core-contracts/v4/dtos/common"
"github.com/edgexfoundry/go-mod-core-contracts/v4/dtos/requests"
"github.com/edgexfoundry/go-mod-core-contracts/v4/dtos/responses"
)

type MockKeeper struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package types
import (
"fmt"

"github.com/edgexfoundry/go-mod-core-contracts/v3/clients/interfaces"
"github.com/edgexfoundry/go-mod-core-contracts/v4/clients/interfaces"
)

type GetAccessTokenCallback func() (string, error)
Expand Down
6 changes: 3 additions & 3 deletions registry/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ package registry
import (
"fmt"

"github.com/edgexfoundry/go-mod-registry/v3/internal/pkg/consul"
"github.com/edgexfoundry/go-mod-registry/v3/internal/pkg/keeper"
"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v4/internal/pkg/consul"
"github.com/edgexfoundry/go-mod-registry/v4/internal/pkg/keeper"
"github.com/edgexfoundry/go-mod-registry/v4/pkg/types"
)

func NewRegistryClient(registryConfig types.Config) (Client, error) {
Expand Down
2 changes: 1 addition & 1 deletion registry/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v4/pkg/types"
)

var registryConfig = types.Config{
Expand Down
2 changes: 1 addition & 1 deletion registry/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package registry

import (
"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v4/pkg/types"
)

type Client interface {
Expand Down
2 changes: 1 addition & 1 deletion registry/mocks/Client.go

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

0 comments on commit f858874

Please sign in to comment.