Browse Source

Add Hostname field to querylog data structure

(to be used by log pipelines reusing this package)
Ask Bjørn Hansen 3 years ago
parent
commit
da06a0aaf0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      querylog/querylog.go

+ 1 - 0
querylog/querylog.go

@@ -13,6 +13,7 @@ type QueryLogger interface {
 // easyjson:json
 type Entry struct {
 	Time       int64
+	Hostname   string `json:"omitempty"` // not filled in by geodns
 	Origin     string
 	Name       string
 	Qtype      uint16