aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_transfer.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2026-06-25 07:44:23 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2026-06-25 07:44:23 -0700
commitbba70d0a2903ab1fff5a2e89cff97cb1f6c7f82a (patch)
treecb8bd5cda76f287358bd7b73292ae024e756c824 /hotline/file_transfer.go
parent4912c3a7c20d765692993f6caaa98a94f5ae28cb (diff)
Introduce PresenceTracker interface for online-user tracking
Replace the leaky *redis.Client field on Server with a PresenceTracker interface that receives connect/rename/disconnect lifecycle events. This removes Redis-specific set encoding from hotline/server.go and the session handlers, and drops the redis dependency from the hotline package. The Redis implementation moves to mobius.RedisPresenceTracker, which owns the legacy "login::ip"/"login:nickname:ip" set encoding so existing deployments keep working. The API server reads online users through a new OnlineLister interface and falls back to the in-memory ClientMgr when no presence tracker is configured. Startup clearing of stale online state now happens unconditionally when Redis is configured, not only when the API server is enabled.
Diffstat (limited to 'hotline/file_transfer.go')
0 files changed, 0 insertions, 0 deletions