MCPcopy Index your code
hub / github.com/perkeep/perkeep / SetCorpus

Method SetCorpus

pkg/search/handler.go:132–135  ·  view source on GitHub ↗
(c *index.Corpus)

Source from the content-addressed store, hash-verified

130}
131
132func (h *Handler) SetCorpus(c *index.Corpus) {
133 h.corpus = c
134 h.lh.SetCorpus(c)
135}
136
137// SendStatusUpdate sends a JSON status map to any connected WebSocket clients.
138func (h *Handler) SendStatusUpdate(status json.RawMessage) {

Callers 9

newHostFunction · 0.95
newHandlerFromConfigFunction · 0.95
testQueryTypeFunction · 0.95
TestDescribeRaceFunction · 0.95
TestDescribePermNoAttrFunction · 0.95
TestDescribeEmptyDirFunction · 0.95
TestPublishURLsFunction · 0.95
TestPublishMembersFunction · 0.95

Calls

no outgoing calls

Tested by 8

newHostFunction · 0.76
testQueryTypeFunction · 0.76
TestDescribeRaceFunction · 0.76
TestDescribePermNoAttrFunction · 0.76
TestDescribeEmptyDirFunction · 0.76
TestPublishURLsFunction · 0.76
TestPublishMembersFunction · 0.76