Skip to content

Seifbarouni/go-service-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-service-registry

Availabe endpoints :

GET http://localhost:8671/ --> Dashboard

GET http://localhost:8671/services/[serviceName] --> Get available instances that have name=serviceName

POST http://localhost:8671/services/[serviceName]?ip=[service ip address]&port=[service port] --> Add new service

PUT http://localhost:8671/services/[serviceName]?ip=[service ip address]&port=[service port] --> Change service status to 'up'

DELETE http://localhost:8671/services/[serviceName]?ip=[service ip address]&port=[service port] --> Change service status to 'down'

Run the app :

docker build . -t service_registry
docker run -p 8671:8671 -t service_registry