Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimedOut = errors.New("timed out due to no activity")
Functions ¶
This section is empty.
Types ¶
type IdleTimer ¶
type IdleTimer struct {
// contains filtered or unexported fields
}
IdleTimer is a dead-mans switch to detect inactivity. Create with New.
func New ¶
New creates an IdleTimer that will return errors if the there is no activity seen for the given duration.
Click to show internal directories.
Click to hide internal directories.