-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from insidieux/consul-catalog-registry
Add consul variations: consul agent and consul catalog
- Loading branch information
Showing
32 changed files
with
980 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/.idea | ||
/vendor | ||
|
||
/coverage.out | ||
mock_*_test.go | ||
wire_gen.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- name: service-name | ||
address: 127.0.0.1 | ||
id: service-id-1 | ||
port: 80 | ||
tags: | ||
- tag-1 | ||
- tag-2 | ||
meta: | ||
key: value | ||
|
||
- name: service-name | ||
address: 127.0.0.2 | ||
id: service-id-2 | ||
port: 80 | ||
tags: | ||
- tag-1 | ||
- tag-2 | ||
meta: | ||
key: value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- name: service-name | ||
address: 127.0.0.1 | ||
id: service-id | ||
port: 80 | ||
tags: | ||
- tag-1 | ||
- tag-2 | ||
meta: | ||
key: value | ||
node: | ||
node: node-1 | ||
address: 127.0.0.100 | ||
|
||
- name: service-name | ||
address: 127.0.0.2 | ||
id: service-id-2 | ||
port: 80 | ||
tags: | ||
- tag-1 | ||
- tag-2 | ||
meta: | ||
key: value | ||
node: | ||
node: node-1 | ||
address: 127.0.0.100 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
version: '3' | ||
|
||
services: | ||
pinchy: | ||
image: insidieux/pinchy:v1.0.0 | ||
pinchy-1: | ||
image: insidieux/pinchy:v1.1.0 | ||
volumes: | ||
- ./configs/source/file:/etc/pinchy | ||
command: | ||
- 'file' | ||
- 'consul' | ||
- 'consul-agent' | ||
- '--source.path' | ||
- '/etc/pinchy/example.yml' | ||
- '/etc/pinchy/consul-agent.yml' | ||
- '--registry.address' | ||
- 'http://consul:8500' | ||
- 'once' | ||
pinchy-2: | ||
image: insidieux/pinchy:v1.1.0 | ||
volumes: | ||
- ./configs/source/file:/etc/pinchy | ||
command: | ||
- 'file' | ||
- 'consul-catalog' | ||
- '--source.path' | ||
- '/etc/pinchy/consul-catalog.yml' | ||
- '--registry.address' | ||
- 'http://consul:8500' | ||
- 'once' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
# Pinchy registry "Consul" | ||
|
||
## Available variations | ||
|
||
### consul-agent [**Deprecated!**] | ||
|
||
Registry work with Consul agent HTTP API | ||
|
||
### consul-agent | ||
|
||
Registry work with Consul agent HTTP API | ||
|
||
### consul-catalog | ||
|
||
Registry work with Consul catalog HTTP API | ||
|
||
|
||
## Available flags | ||
|
||
``` | ||
--registry.address string Consul http api address (default "127.0.0.1:8500") | ||
--registry.tag string Common service tag added for all registered service (default "pinchy") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.