5.54 GB
51,854 files
Updated about 1 month ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| README.md | 859 Bytes xet | 8fd58fe2 | |
| manager.go | 26.8 kB xet | 72864748 |
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, Linuxnotify-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