Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ReadBatchSize = 1024 * runtime.NumCPU()
)
Functions ¶
func ChangeSet ¶
ChangeSet is used to walk a filesystem, starting at root, and outputting any new or changed paths using pathsCh. It determines if a path is new or has changed by comparing against cache entries.
func Open ¶
Open creates an instance of bolt.DB for a given treeRoot path. If clean is true, Open will delete any existing data in the cache.
The database will be located in `XDG_CACHE_DIR/treefmt/eval-cache/<id>.db`, where <id> is determined by hashing the treeRoot path. This associates a given treeRoot with a given instance of the cache.
Types ¶
Click to show internal directories.
Click to hide internal directories.