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

Method Fetch

pkg/blob/fetcher.go:81–89  ·  view source on GitHub ↗
(ctx context.Context, r Ref)

Source from the content-addressed store, hash-verified

79}
80
81func (sf *serialFetcher) Fetch(ctx context.Context, r Ref) (file io.ReadCloser, size uint32, err error) {
82 for _, fetcher := range sf.fetchers {
83 file, size, err = fetcher.Fetch(ctx, r)
84 if err == nil {
85 return
86 }
87 }
88 return
89}
90
91type DirFetcher struct {
92 directory, extension string

Callers

nothing calls this directly

Calls 1

FetchMethod · 0.65

Tested by

no test coverage detected