All Projects → gulyasm → goservice

gulyasm / goservice

Licence: other
Example Go service wtih best practices and idioms

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
Makefile
30231 projects

Example Go service

Build

To build the service:

make

Test

To run tests:

make test

To get test coverage:

make coverage-test

Running

The service uses environmental variables for configuration. To build and run:

make && LISTENING_ADDRESS=:12500 HEARTBEAT_ADDRESS=:12501 ./goservice

To test the running service:

curl localhost:12500/service/ip?domain=enbrite.ly

To test the heartbeat service:

curl localhost:12501/heartbeat

UI

The UI is available at http://localhost:12500

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].