MCPcopy
hub / github.com/lotusirous/go-concurrency-patterns / Fetcher

Interface Fetcher

14-adv-subscription/main.go:14–16  ·  view source on GitHub ↗

A Fetcher fetches Items and returns the time when the next fetch should be attempted. On failure, Fetch returns a non-nil error.

Source from the content-addressed store, hash-verified

12// A Fetcher fetches Items and returns the time when the next fetch should be
13// attempted. On failure, Fetch returns a non-nil error.
14type Fetcher interface {
15 Fetch() (items []Item, next time.Time, err error)
16}
17
18// A Subscription delivers Items over a channel. Close cancels the
19// subscription, closes the Updates channel, and returns the last fetch error,

Callers 4

loopFetchOnlyMethod · 0.65
mergedLoopMethod · 0.65
dedupeLoopMethod · 0.65
loopMethod · 0.65

Implementers 1

fakeFetcher14-adv-subscription/main.go

Calls

no outgoing calls

Tested by

no test coverage detected