ProtocolStateStore persists shared protocol state for a fetcher manager. Downloader provides the concrete storage backend, while the protocol decides when state should be loaded or flushed.
| 137 | // Downloader provides the concrete storage backend, while the protocol decides |
| 138 | // when state should be loaded or flushed. |
| 139 | type ProtocolStateStore interface { |
| 140 | Load(v any) (bool, error) |
| 141 | Save(v any) error |
| 142 | Delete() error |
| 143 | } |
| 144 | |
| 145 | type DefaultFetcher struct { |
| 146 | Ctl *controller.Controller |
no outgoing calls
no test coverage detected