add: new pipeline to log parser

This commit is contained in:
Inanc Gumus
2019-08-08 14:11:54 +03:00
parent 91b3258042
commit e4dae5e0d4
10 changed files with 112 additions and 107 deletions

View File

@@ -19,7 +19,7 @@ const (
dashLength = 58
)
func textWriter(w io.Writer) outputFunc {
func textWriter(w io.Writer) outputFn {
return func(results []result) error {
fmt.Fprintf(w, header, "DOMAINS", "PAGES", "VISITS", "UNIQUES")
fmt.Fprintln(w, strings.Repeat("-", dashLength))
@@ -36,7 +36,7 @@ func textWriter(w io.Writer) outputFunc {
}
}
func noWhere() outputFunc {
func noWhere() outputFn {
return func(res []result) error {
return nil
}