Fetch returns a checkup record -- Not tested!
(name string)
| 261 | |
| 262 | // Fetch returns a checkup record -- Not tested! |
| 263 | func (gh *Storage) Fetch(name string) ([]types.Result, error) { |
| 264 | contents, _, err := gh.readFile(name) |
| 265 | if err != nil { |
| 266 | return nil, err |
| 267 | } |
| 268 | var r []types.Result |
| 269 | err = json.Unmarshal(contents, &r) |
| 270 | return r, err |
| 271 | } |
| 272 | |
| 273 | // GetIndex returns the checkup index |
| 274 | func (gh *Storage) GetIndex() (map[string]int64, error) { |