A simple go server for testing connection stuff.
docker pull ghcr.io/nicolaiort/kusatoko
docker run -p 8080:8080 ghcr.io/nicolaiort/kusatoko
go run main.go
Endpoint | Description |
---|---|
/ |
Returns a simple text message |
/healthz |
Returns ok |
/whatsmyip |
Returns the requesting client's IP |
/headers |
Returns all request headers |
/status/{code} |
Returns the status code provided via {code} and it's associated message |
ENV-Var | Default | Description |
---|---|---|
PORT |
8080 | The server's listening port |
ROOT_MESSAGE |
"Hello, World!" | The text displayed on / |