5.54 GB
51,854 files
Updated about 1 month ago
Name
Size
README.md859 Bytes
xet
manager.go26.8 kB
xet
README.md

10. Go Server Device Management & Desktop OS Notifier (internal/device)

Architecture Overview

The internal/device package manages paired client devices, authentication session states, and desktop OS native notifications.


Core Functionality

1. manager.go

  • Device State Registry: Tracks active client devices, IP addresses, MAC addresses, and connection status (Connected, Disconnected, Pending).
  • Status Updates (UpdateDeviceStatus): Updates device states and triggers event callbacks when devices connect or disconnect.

2. Desktop OS Notifications (sendOSNotification)

  • Interacts with operating system notification APIs (macOS osascript, Linux notify-send, Windows PowerShell Toast):
    • Displays native floating desktop toasts when an Android phone connects, disconnects, or requests pairing approval.
Total size
5.54 GB
Files
51,854
Last updated
Sep 12
Pre-warmed CDN
US EU US EU

Contributors