Documentation
¶
Overview ¶
Package syncer combines resolution and upload for a single session file. Both the one-shot sync command and the watch loop drive files through it, so the "resolve to a project, then push the gap" logic lives in one place.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
File discover.File
Kind resolve.Kind
ProjectKey string
LocalRoot string
Cwd string
Skipped bool
Reason string
Err error
Action upload.Action
UploadedBytes int64
MessageCount int
}
Result is the outcome of syncing one file: a skip with a reason, an error, or a successful upload action. Kind classifies how the session resolved; Reason carries the detail behind a standalone or orphaned classification (or a skip).
func (Result) Destination ¶
Destination is a short label for where the file was backed up, for logs and summaries. A remote session shows its project key; a standalone session backed by a live worktree shows the repo root it grouped under; any other local session shows its kind and working directory, since it has no remote.