MCPcopy
hub / github.com/perkeep/perkeep / isHandler

Method isHandler

pkg/server/status.go:135–146  ·  view source on GitHub ↗
(pfx string)

Source from the content-addressed store, hash-verified

133}
134
135func (st *status) isHandler(pfx string) bool {
136 if pfx == st.importerRoot {
137 return true
138 }
139 if _, ok := st.Sync[pfx]; ok {
140 return true
141 }
142 if _, ok := st.Storage[pfx]; ok {
143 return true
144 }
145 return false
146}
147
148type storageStatus struct {
149 Primary bool `json:"primary,omitempty"`

Callers 1

serveStatusHTMLMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected