Documentation
¶
Overview ¶
Package sync keeps the non-versioned cache consistent with the versioned .spectackle files (which are the source of truth). A debounced Refresh runs before every tool call: per bundle file, an mtime+size gate decides cheaply that a file changed, and a sha256 of the content decides whether a file the gate calls unchanged really is; on change the file is re-parsed and its doc kinds replaced in the FTS index.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
Root workspace.Root
Cache *cache.Cache
// contains filtered or unexported fields
}
Scanner drives cache refreshes.
Click to show internal directories.
Click to hide internal directories.