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

Method SendStatusUpdate

pkg/search/handler.go:138–140  ·  view source on GitHub ↗

SendStatusUpdate sends a JSON status map to any connected WebSocket clients.

(status json.RawMessage)

Source from the content-addressed store, hash-verified

136
137// SendStatusUpdate sends a JSON status map to any connected WebSocket clients.
138func (h *Handler) SendStatusUpdate(status json.RawMessage) {
139 h.wsHub.statusUpdate <- status
140}
141
142func newHandlerFromConfig(ld blobserver.Loader, conf jsonconfig.Obj) (http.Handler, error) {
143 indexPrefix := conf.RequiredString("index") // TODO: add optional help tips here?

Callers 1

InitHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected