Skip to content

spohnan/ws-test-01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card

A trivial golang project for me to continue to learn Go and Docker

Build and run tests on local machine

make run

Run within a Docker container

make docker-run

Endpoints

Return an environment variable value

http://localhost:8080/api/v1/env/BAZ/ -> {"Name":"BAZ","Value":"BAZVAL2"}

Return the hostname

http://localhost:8080/api/v1/host/ -> {"HostName":"edba47764b7a"}

(Fake) Health Check

http://localhost:8080/health -> OK

Simulate work with a timeout

http://localhost:8080/sleep/TIMEOUT_IN_MILLIS/

Version info

http://localhost:8080/version -> {"Version":"1.1.0","VersionPrerelease":"dev","GitCommit":"7ef41aa00898d46e9e063a8389ed972b90d02a2d+CHANGES","BuildDate":"2015-12-17T15:26:42Z"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published