StorageReader can read results from the Storage.
| 18 | |
| 19 | // StorageReader can read results from the Storage. |
| 20 | type StorageReader interface { |
| 21 | // Fetch returns the contents of a check file. |
| 22 | Fetch(checkFile string) ([]types.Result, error) |
| 23 | // GetIndex returns the storage index, as a map where keys are check |
| 24 | // result filenames and values are the associated check timestamps. |
| 25 | GetIndex() (map[string]int64, error) |
| 26 | } |
| 27 | |
| 28 | // Maintainer can maintain a store of results by |
| 29 | // deleting old check files that are no longer |