returns os.ErrNotExist when document was not found
(pn blob.Ref)
| 728 | |
| 729 | // returns os.ErrNotExist when document was not found |
| 730 | func (h *handler) fetchDocument(pn blob.Ref) (*document, error) { |
| 731 | return h.fetchDocumentFunc([]blob.Ref{pn}, func(blobs []blob.Ref) (*search.SearchResult, error) { |
| 732 | return h.searchDocument(context.TODO(), blobs[0]) |
| 733 | }) |
| 734 | } |
| 735 | |
| 736 | // returns os.ErrNotExist when document was not found |
| 737 | func (h *handler) fetchDocumentFunc(blobs []blob.Ref, |
no test coverage detected