MCPcopy Index your code
hub / github.com/coder/coder / Index

Struct Index

agent/filefinder/delta.go:23–30  ·  view source on GitHub ↗

Index is an append-only in-memory file index with snapshot support.

Source from the content-addressed store, hash-verified

21
22// Index is an append-only in-memory file index with snapshot support.
23type Index struct {
24 docs []doc
25 byGram map[uint32][]uint32
26 byPrefix1 [256][]uint32
27 byPrefix2 map[uint16][]uint32
28 byPath map[string]uint32
29 deleted map[uint32]bool
30}
31
32// Snapshot is a frozen, read-only view of the index at a point in time.
33type Snapshot struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected