Skip to content

Commit

Permalink
feat!: Remove consul dependency
Browse files Browse the repository at this point in the history
related to edgexfoundry/edgex-go#4985

Signed-off-by: Ginny Guan <[email protected]>
  • Loading branch information
jinlinGuan committed Oct 30, 2024
1 parent 23630f8 commit 8c20e08
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 1,315 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# go-mod-registry
[![Build Status](https://jenkins.edgexfoundry.org/view/EdgeX%20Foundry%20Project/job/edgexfoundry/job/go-mod-registry/job/main/badge/icon)](https://jenkins.edgexfoundry.org/view/EdgeX%20Foundry%20Project/job/edgexfoundry/job/go-mod-registry/job/main/) [![Code Coverage](https://codecov.io/gh/edgexfoundry/go-mod-registry/branch/main/graph/badge.svg?token=FyA6AijZ05)](https://codecov.io/gh/edgexfoundry/go-mod-registry) [![Go Report Card](https://goreportcard.com/badge/github.com/edgexfoundry/go-mod-registry)](https://goreportcard.com/report/github.com/edgexfoundry/go-mod-registry) [![GitHub Latest Dev Tag)](https://img.shields.io/github/v/tag/edgexfoundry/go-mod-registry?include_prereleases&sort=semver&label=latest-dev)](https://github.com/edgexfoundry/go-mod-registry/tags) ![GitHub Latest Stable Tag)](https://img.shields.io/github/v/tag/edgexfoundry/go-mod-registry?sort=semver&label=latest-stable) [![GitHub License](https://img.shields.io/github/license/edgexfoundry/go-mod-registry)](https://choosealicense.com/licenses/apache-2.0/) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/edgexfoundry/go-mod-registry) [![GitHub Pull Requests](https://img.shields.io/github/issues-pr-raw/edgexfoundry/go-mod-registry)](https://github.com/edgexfoundry/go-mod-registry/pulls) [![GitHub Contributors](https://img.shields.io/github/contributors/edgexfoundry/go-mod-registry)](https://github.com/edgexfoundry/go-mod-registry/contributors) [![GitHub Committers](https://img.shields.io/badge/team-committers-green)](https://github.com/orgs/edgexfoundry/teams/go-mod-registry-committers/members) [![GitHub Commit Activity](https://img.shields.io/github/commit-activity/m/edgexfoundry/go-mod-registry)](https://github.com/edgexfoundry/go-mod-registry/commits)

Registry client library for use by Go implementation of EdgeX micro services. This project contains the abstract Registry interface and an implementation for Consul. These interface functions initialize a connection to the Registry service, register the service for discovery and health checks and request service endpoint and status
Registry client library for use by Go implementation of EdgeX micro services. This project contains the abstract Registry interface and an implementation for core-keeper. These interface functions initialize a connection to the Registry service, register the service for discovery and health checks and request service endpoint and status

### What is this repository for? ###
* Initialize connection to a Registry service
Expand All @@ -10,13 +10,13 @@ Registry client library for use by Go implementation of EdgeX micro services. T
* Check the health status of dependent services via the Registry service.

### How to Use ###
This library is used by Go programs for interacting with the Registry service (i.e. Consul) and requires that a Registry service be running somewhere that the Registry Client can connect. The Registry service connection information as well as which registry implementation to use is stored in the service's toml configuration as:
This library is used by Go programs for interacting with the Registry service (i.e. keeper) and requires that a Registry service be running somewhere that the Registry Client can connect. The Registry service connection information as well as which registry implementation to use is stored in the service's toml configuration as:

```go
[Registry]
Host = 'localhost'
Port = 8500
Type = 'consul'
Port = 59890
Type = 'keeper'
Enabled = true
```

Expand Down
18 changes: 1 addition & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,25 @@ module github.com/edgexfoundry/go-mod-registry/v4
go 1.23

require (
github.com/edgexfoundry/go-mod-core-contracts/v4 v4.0.0-dev.1
github.com/hashicorp/consul/api v1.29.4
github.com/edgexfoundry/go-mod-core-contracts/v4 v4.0.0-dev.2
github.com/stretchr/testify v1.9.0
)

require (
github.com/armon/go-metrics v0.4.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.22.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/serf v0.10.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/x448/float16 v0.8.4 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
Expand Down
Loading

0 comments on commit 8c20e08

Please sign in to comment.