inactivitymonitor

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2025 License: GPL-2.0 Imports: 4 Imported by: 0

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

func CreateWorker(broke *GoBroke.Broke, inactivityMinutes int) types.Logic

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL