LocalSend-compatible file-transfer TUI for headless Arch/Omarchy servers. - Pure-stdlib implementation of the LocalSend v2 protocol (discovery, HTTPS with matching cert fingerprint, send/receive, PIN). - Bubble Tea TUI: Devices, Transfers, Manage (received-file housekeeping) and Settings, theme-aware on Omarchy. - Dual-mode install.sh: curl-pipe download or build-from-clone. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 lines
486 B
Go
18 lines
486 B
Go
package server
|
|
|
|
import "omarchy-send/internal/protocol"
|
|
|
|
// AcceptDecision is the user's response to an incoming upload request.
|
|
type AcceptDecision struct {
|
|
Accept bool
|
|
}
|
|
|
|
// AcceptRequest is raised when a peer asks to upload. The prepare-upload
|
|
// handler blocks on Reply until the TUI (or auto-accept) answers.
|
|
type AcceptRequest struct {
|
|
From protocol.DeviceInfo
|
|
IP string
|
|
Files map[string]protocol.FileMetadata
|
|
TotalSize int64
|
|
Reply chan AcceptDecision
|
|
}
|