MCPcopy Index your code
hub / github.com/digineo/go-ping

github.com/digineo/go-ping @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
95 symbols 236 edges 22 files 45 documented · 47% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-ping

GoDoc Build Status Codecov Go Report Card

A simple ICMP Echo implementation, based on golang.org/x/net/icmp.

Some sample programs are provided in cmd/:

  • ping-test is a really simple ping clone
  • multiping provides an interactive TUI to ping multiple hosts
  • ping-monitor pings multiple hosts in parallel, but just prints the summary every so often
  • pingnet allows to ping every host in a CIDR range (e.g. 0.0.0.0/0 :-))

Features

  • [x] IPv4 and IPv6 support
  • [x] Unicast and multicast support
  • [x] configurable retry amount and timeout duration
  • [x] configurable payload size (and content)
  • [x] round trip time measurement

Contribute

Simply fork and create a pull-request. We'll try to respond in a timely fashion.

Software using this library

Please create a pull request to get your software listed.

License

MIT License, Copyright (c) 2018 Digineo GmbH

https://www.digineo.de

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

AddResult
called by 26
monitor/history.go
Compute
called by 11
monitor/history.go
NewHistory
called by 9
monitor/history.go
Close
called by 7
pinger.go
ts
called by 5
cmd/multiping/ui.go
Stop
called by 5
monitor/target.go
SetPayloadSize
called by 4
pinger.go
PingAttempts
called by 3
sending.go

Shape

Method 55
Function 22
Struct 16
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

request.go14 symbols
monitor/monitor.go10 symbols
pinger.go9 symbols
monitor/history.go8 symbols
sending.go6 symbols
monitor/target.go6 symbols
cmd/multiping/destination.go6 symbols
cmd/pingnet/main.go5 symbols
cmd/multiping/ui.go5 symbols
monitor/history_test.go4 symbols
error.go4 symbols
receiving.go3 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

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

⬇ download graph artifact