MCPcopy
hub / github.com/perkeep/perkeep / Fetch

Method Fetch

pkg/client/get.go:48–50  ·  view source on GitHub ↗
(ctx context.Context, b blob.Ref)

Source from the content-addressed store, hash-verified

46}
47
48func (c *Client) Fetch(ctx context.Context, b blob.Ref) (io.ReadCloser, uint32, error) {
49 return c.fetchVia(ctx, b, c.viaPathTo(b))
50}
51
52func (c *Client) viaPathTo(b blob.Ref) (path []blob.Ref) {
53 c.viaMu.RLock()

Callers 1

FetchSchemaBlobMethod · 0.95

Calls 2

fetchViaMethod · 0.95
viaPathToMethod · 0.95

Tested by

no test coverage detected