Skip to content

PIng library, that can ping and process multipple nodes at once

License

Notifications You must be signed in to change notification settings

drgkaleda/go-multiping

Repository files navigation

made-with-Go Build Tests GitHub release GitHub license

go-multiping

Ping library, that can ping and process multipple nodes at once

The motivation for this multi-ping fork

There are quite a few Go pinger, but all of them have issues:

Also need to mention that all these pingers are periodic pingers, they try to mimmic shell ping command. They run in internal loop, cancel that loop after timeout. They can be used, but you have to adjust your code to their style. Instead I wanted a pinger, that can ping multipple hosts at a time and be robust. I don't think its a problem for ping user to run it in a loop and don't want any hidden logic.

So this ping is loosely based on above mentioned projects. It can ping multiple clients. And is cholesterol free.

Note about concurency

The main package MultiPing has internal lock and can be reused in multiple threads with different PingData.

The PingData however is not tread safe. This mean that during Ping its content can change and thus the caller is responsible for locking.

About

PIng library, that can ping and process multipple nodes at once

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published