Skip to content

Commit

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

Signed-off-by: Elizabeth J Lee <elizabeth.j.lee@intel.com>
  • Loading branch information
ejlee3 committed Dec 6, 2022
1 parent e15ff9c commit 08a0459
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/edgexfoundry/go-mod-registry/v2
module github.com/edgexfoundry/go-mod-registry/v3

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions 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/v2/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
)

const (
Expand Down Expand Up @@ -225,7 +225,7 @@ func (client *consulClient) GetServiceEndpoint(serviceID string) (types.ServiceE
return endpoint, nil
}

//GetAllServiceEndpoints retrieves all registered endpoints from Consul.
// GetAllServiceEndpoints retrieves all registered endpoints from Consul.
func (client *consulClient) GetAllServiceEndpoints() ([]types.ServiceEndpoint, error) {
services, err := client.consulClient.Agent().Services()

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/v2/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions registry/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package registry
import (
"fmt"

"github.com/edgexfoundry/go-mod-registry/v2/internal/pkg/consul"
"github.com/edgexfoundry/go-mod-registry/v2/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v3/internal/pkg/consul"
"github.com/edgexfoundry/go-mod-registry/v3/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/v2/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v3/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/v2/pkg/types"
"github.com/edgexfoundry/go-mod-registry/v3/pkg/types"
)

type Client interface {
Expand Down
19 changes: 17 additions & 2 deletions 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 08a0459

Please sign in to comment.