A Subscription delivers Items over a channel. Close cancels the subscription, closes the Updates channel, and returns the last fetch error, if any.
| 19 | // subscription, closes the Updates channel, and returns the last fetch error, |
| 20 | // if any. |
| 21 | type Subscription interface { |
| 22 | Updates() <-chan Item |
| 23 | Close() error |
| 24 | } |
| 25 | |
| 26 | // Subscribe returns a new Subscription that uses fetcher to fetch Items. |
| 27 | func Subscribe(fetcher Fetcher) Subscription { |
no outgoing calls
no test coverage detected