Documentation
¶
Overview ¶
Package sync reconciles the filesystem (walker + digest) with the persisted Bleve index, using mtime/size fast-path and digest equality to skip unchanged docs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
type Meta struct {
SchemaVersion int `json:"schema_version"`
LastSyncAt time.Time `json:"last_sync_at"`
}
Meta is the JSON sidecar written next to the Bleve index.
type Result ¶
type Result struct {
Scanned int // files visited by the walker
Upserted int // new or content-changed docs written
Touched int // unchanged bodies but mtime/size metadata refreshed
Deleted int // index entries removed because the file is gone
Unchanged int // fast-path skips (mtime + size matched stored)
}
Result reports what a single Run did.
Click to show internal directories.
Click to hide internal directories.