Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopPinger ¶
type NoopPinger struct {
// contains filtered or unexported fields
}
NoopPinger implements the pinger interface, does nothing but waits for heat death of the universe.
func NewNoopPinger ¶
func NewNoopPinger() *NoopPinger
NewNoopPinger returns a new NoopPinger instance.
func (*NoopPinger) Wait ¶
func (p *NoopPinger) Wait() error
Wait implements the worker.Worker interface.
type Pinger ¶
type Pinger struct { worker.Worker // contains filtered or unexported fields }
Pinger listens for pings and will call the passed action in case of a timeout. This way broken or inactive connections can be closed.
func NewPinger ¶
NewPinger returns a new Pinger instance that invokes the given action asynchronously if there is more than the given timeout interval between calls to its Ping method.
Click to show internal directories.
Click to hide internal directories.