Documentation
¶
Overview ¶
Package inactivitymonitor provides a passive logic handler that monitors client activity and automatically removes clients that have been inactive for a specified duration.
Index ¶
Constants ¶
View Source
const Name types.LogicName = "broadcaster"
This ensures this logic can be addressed from another logic
Variables ¶
This section is empty.
Functions ¶
func CreateWorker ¶
CreateWorker creates a new inactivity monitor instance. Parameters:
- broke: The broker instance to monitor
- inactivityMinutes: The duration in minutes after which a client is considered inactive
Returns a types.Logic interface that runs passively in the background.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.