Skip to content

Commit

Permalink
Fix typo in grpcurl commands in service discovery readme (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
ladatz authored Oct 30, 2023
1 parent d3ece6a commit 81474c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions service_discovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ This service implements the gRPC methods defined in
To register a service, replace your path to the service discovery directory in the command:
```shell
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @ \
0.0.0.0:50000 service_registry.ServiceRegistry/Register <<EOF
{
"service":
Expand Down Expand Up @@ -165,7 +165,7 @@ In order to discover your newly registered service you can call discover, again
to service discovery:
```shell
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @ \
0.0.0.0:50000 service_registry.ServiceRegistry/Discover <<EOF
{
"namespace": "sdv.samples",
Expand All @@ -180,7 +180,7 @@ This will return all of the metadata stored for that service.
You can also register more services under the same namespace, and then discover by the namespace with the following command. This is helpful if you want to retrieve a list of services that share the same logical grouping.
```shell
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @ \
0.0.0.0:50000 service_registry.ServiceRegistry/DiscoverByNamespace <<EOF
{
"namespace": "sdv.samples"
Expand All @@ -191,7 +191,7 @@ EOF
You can also list all registered services with:
```shell
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @ \
0.0.0.0:50000 service_registry.ServiceRegistry/List <<EOF
{
}
Expand All @@ -201,7 +201,7 @@ EOF
And when you want to unregister a service you can use the following:
```shell
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @
grpcurl -proto {path_to_service_discovery}/proto/core/v1/service_registry.proto -plaintext -d @ \
0.0.0.0:50000 service_registry.ServiceRegistry/Unregister <<EOF
{
"namespace": "sdv.samples",
Expand Down

0 comments on commit 81474c7

Please sign in to comment.