Implement result listing from CLI

Change the schema to include ASN and Network Name in the results table
This commit is contained in:
Arturo Filastò 2018-05-03 18:40:52 +02:00
commit ecf3370f53
9 changed files with 323 additions and 21 deletions

View file

@ -68,6 +68,8 @@ func (h *Handler) TypedLog(t string, e *log.Entry) error {
fmt.Fprintf(h.Writer, "%.1f%% [%s]: %s", e.Fields.Get("percentage").(float64)*100, e.Fields.Get("key"), e.Message)
fmt.Fprintln(h.Writer)
return nil
case "result_item":
return logResultItem(h.Writer, e.Fields)
default:
return h.DefaultLog(e)
}