MCPcopy Index your code
hub / github.com/cloverstd/tcping

github.com/cloverstd/tcping @v0.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.1 ↗ · + Follow
42 symbols 68 edges 6 files 23 documented · 55%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status

tcping

tcping is like tcping.exe, but written with Golang.

Usage

  • The default count of ping is 4.

  • If the port is emit, the default port is 80.

  • The default interval of ping is 1s.

  • The default timeout of ping is 1s.

ping tcp

> tcping google.com 443
Ping tcp://google.com:443 - Connected - time=15.425732ms
Ping tcp://google.com:443 - Connected - time=2.628025ms
Ping tcp://google.com:443 - Connected - time=2.400356ms
Ping tcp://google.com:443 - Connected - time=1.967587ms

Ping statistics tcp://google.com:443
    4 probes sent.
    4 successful, 0 failed.
Approximate trip times:
    Minimum = 1.967587ms, Maximum = 15.425732ms, Average = 5.605425ms

ping http

> tcping -H hui.lu
Ping http://hui.lu:80 - http is open - time=232.880173ms method=GET status=200 bytes=10317
Ping http://hui.lu:80 - http is open - time=60.096446ms method=GET status=200 bytes=10317
Ping http://hui.lu:80 - http is open - time=56.750403ms method=GET status=200 bytes=10317
Ping http://hui.lu:80 - http is open - time=57.886907ms method=GET status=200 bytes=10317

Ping statistics http://hui.lu:80
    4 probes sent.
    4 successful, 0 failed.
Approximate trip times:
    Minimum = 56.750403ms, Maximum = 232.880173ms, Average = 101.903482ms

Extension points exported contracts — how you extend this code

Pinger (Interface)
Pinger is a ping interface [2 implementers]
ping/ping.go
Ping (Interface)
Ping is a ping interface
ping/ping.go

Core symbols most depended-on inside this repo

String
called by 8
ping/ping.go
Stop
called by 2
ping/ping.go
timeIt
called by 2
ping/utils.go
Stop
called by 1
ping/http.go
ping
called by 1
ping/http.go
SetTarget
called by 1
ping/ping.go
Start
called by 1
ping/ping.go
Result
called by 1
ping/ping.go

Shape

Method 26
Function 9
Struct 4
Interface 2
TypeAlias 1

Languages

Go100%

Modules by API surface

ping/ping.go23 symbols
ping/tcp.go7 symbols
ping/http.go7 symbols
ping/utils.go2 symbols
main.go2 symbols
ping/fqdn.go1 symbols

For agents

$ claude mcp add tcping \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact