Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

utility testapp used for testing and debugging

NotificationsYou must be signed in to change notification settings

nais/testapp

Repository files navigation

services

simple go binary that exposes the following services

  • /env (prints all environment variables)
  • /ping(?delay=<duration>) (returns "pong\n" and HTTP 200. Valid durations include 10s, 6m, 9h etc, and will delay the response accordingly)
  • /hostname (prints hostname)
  • /connect (performs a HTTP GET to the URL configured in$CONNECT_URL and prints the result. Ignores certs)
  • /loginfo (logs "info log entry from testapp" with levelinfo)
  • /logerror (logs "error log entry from testapp" with levelerror)
  • /logdebug (logs "debug log entry from testapp" with leveldebug)

binaries

the docker container has the following binaries

nc,curl,dig,nmap,socat,hey,vim,tcpdump,traceroute,strace,iperf,telnet

options

      --bind-address string          ip:port where http requests are served (default ":8080")      --connect-url string           URL to connect to with /connect (default "https://google.com")      --ping-response string         what to respond when pinged (default "pong\n")

[8]ページ先頭

©2009-2025 Movatter.jp