*(dnsforward): added QLogFile struct

This struct is supposed to use an easier algorithm for scanning query
log files. The end goal is allow us scanning multiple query log files.
This commit is contained in:
Andrey Meshkov
2020-02-18 13:02:59 +03:00
parent 57466233cb
commit 9d5f201ddf
4 changed files with 341 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ import (
)
const enableGzip = false
// TODO: Check this when we append a new line -- we don't want to have a line longer than this
const maxEntrySize = 1000
// flushLogBuffer flushes the current buffer to file and resets the current buffer