Knine v0.0.1 Knine.Watchdog.PortWatchdog
Deamon and tools for checking a port availability on services
Summary
Types
Functions
bark(arg)
bark({String.t | List.t, port_number, Integer.t}) :: Knine.Watchdog.bark_resp
bark({String.t | List.t, port_number}) :: Knine.Watchdog.bark_resp
Whatchdog bark api which checks for port availability on a host.
Parameters
- arg1: a tuple in format of
{host, port, timeout}
host is stgirng or an erlang ip, port is an int in range of 1-65536. timeout is int milliseconds.
Example
iex> Knine.Watchdog.PortWatchdog.bark {“google.com”, 80, 10000} :ok