A Fetcher fetches Items and returns the time when the next fetch should be attempted. On failure, Fetch returns a non-nil error.
| 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. |
| 14 | type 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, |
no outgoing calls
no test coverage detected