echo-server

command module
v0.0.0-...-33cb60f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

echo-server

Echo-server is a tiny HTTP server for test purpose in K8s.

  • / echo full request back to body, use the query parameter code to configure the response code, and use the query parameter duration to configure the handling duration. For example, curl -i '127.1:8080/?code=500&duration=2s'.
  • /hello status 200 and hello world
  • /cpu cpu info
  • /vmem virtual memory info
  • /net return network interface list
docker run --rm -d -p 8080:80 zengxu/echo-server

For complicated cases, podinfo is more suitable.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL