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

Struct Fetcher

pkg/test/fetcher.go:31–40  ·  view source on GitHub ↗

Fetcher is an in-memory implementation of the blobserver Storage interface. It started as just a fetcher and grew. It also includes other convenience methods for testing.

Source from the content-addressed store, hash-verified

29// interface. It started as just a fetcher and grew. It also includes
30// other convenience methods for testing.
31type Fetcher struct {
32 memory.Storage
33
34 // ReceiveErr optionally returns the error to return on receive.
35 ReceiveErr error
36
37 // FetchErr, if non-nil, specifies the error to return on the next fetch call.
38 // If it returns nil, fetches proceed as normal.
39 FetchErr func() error
40}
41
42var (
43 _ blobserver.Storage = (*Fetcher)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected