Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶
ComputeHash computes SHA256 hash of a file
Types ¶
type FileState ¶
type FileState struct {
MTime int64 `json:"mtime"`
Hash string `json:"hash"`
PairedWith string `json:"paired_with"`
}
FileState represents the state of a single file
type State ¶
type State struct {
Files map[string]*FileState `json:"files"`
IDMap map[string]string `json:"id_map"` // org-id -> filename
}
State represents the sync state
func (*State) HasChanged ¶
HasChanged checks if a file has changed since last sync Uses hybrid mtime + hash approach
Click to show internal directories.
Click to hide internal directories.