Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InChan chan InputObservation
InChan is the global input channel delivering InputObservations from feeders to consumers.
Functions ¶
This section is empty.
Types ¶
type InputObservation ¶
type InputObservation struct {
Count uint `codec:"C"`
Rcode string `codec:"-"`
Rdata string `codec:"D"`
Rrtype string `codec:"T"`
Rrname string `codec:"N"`
SensorID string `codec:"I"`
TimestampEnd time.Time `codec:"L"`
TimestampStart time.Time `codec:"F"`
}
InputObservation is a minimal, small observation structure to be used as the minimal common input type for all consumers.
type Observation ¶
type Observation struct {
ID uuid.UUID `json:"-" codec:"-"`
Count uint `json:"count" codec:"C"`
FirstSeen time.Time `json:"time_first" codec:"F"`
LastSeen time.Time `json:"time_last" codec:"L"`
RRType string `json:"rrtype" codec:"T"`
RRName string `json:"rrname" codec:"N"`
RData string `json:"rdata" codec:"D"`
SensorID string `json:"sensor_id" codec:"I"`
}
Observation represents a DNS answer, potentially repeated, observed on a given sensor stating a specific RR set.
Click to show internal directories.
Click to hide internal directories.