func (f *Fuzzer) State() types.State { state := types.State{ Id: f.Id, Queue: types.ReadQueue(fmt.Sprintf("output/%s/queue", f.Id)), Crashes: types.ReadDir(fmt.Sprintf("output/%s/crashes", f.Id)), Hangs: types.ReadDir(fmt.Sprintf("output/%s/hangs", f.Id)), } return state }
func inputs(c web.C, w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") corpus := types.ReadDir("input") encoder := json.NewEncoder(w) encoder.Encode(corpus) }