Documentation
¶
Index ¶
- func ClearPingIfNeeded(ip string)
- func RegisterPingWatch(ip string, timeout time.Duration) (*tools.BroadcastReceiver, error)
- func SendPing(ip string) int
- func StartLoopPing()
- func StartPingWatcher()
- func UpdatePingChannels()
- type CPingMap
- type Ping
- type PingResponse
- type PingSend
- type SNMPResponse
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearPingIfNeeded ¶
func ClearPingIfNeeded(ip string)
ClearPingIfNeeded analyze if we need to do clean of the ip related objects
func RegisterPingWatch ¶
RegisterPingWatch add to the watch list
func StartLoopPing ¶
func StartLoopPing()
StartLoopPing start the go routing sending recursively ping for element in database
func StartPingWatcher ¶
func StartPingWatcher()
StartPingWatcher start the goroutine for watch receiving of ping response
func UpdatePingChannels ¶
func UpdatePingChannels()
UpdatePingChannels clean a set the watching of channels
Types ¶
type Ping ¶
type Ping struct { Ch tools.Broadcaster Start time.Time //TODO remove this and base calcul on Send[] average Send map[int]PingSend Timeout time.Duration // a infinite send will have 0 here }
Ping contain information about a runnnig ping
type PingResponse ¶
type PingResponse struct { //TODO check PID for long running or multiple ping IP string Result bool Time time.Duration Error string }
PingResponse represent ip response and stats
type PingSend ¶
type PingSend struct {
// contains filtered or unexported fields
}
PingSend format of a Ping send
type SNMPResponse ¶
Click to show internal directories.
Click to hide internal directories.