blocky/querylog/writer.go

24 lines
359 B
Go

package querylog
import (
"time"
)
type LogEntry struct {
Start time.Time
ClientIP string
ClientNames []string
DurationMs int64
ResponseReason string
ResponseType string
ResponseCode string
QuestionType string
QuestionName string
Answer string
}
type Writer interface {
Write(entry *LogEntry)
CleanUp()
}