Selaa lähdekoodia

Add Hostname field to querylog data structure

(to be used by log pipelines reusing this package)
Ask Bjørn Hansen 3 vuotta sitten
vanhempi
commit
da06a0aaf0
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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