observation

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: BSD-3-Clause Imports: 2 Imported by: 6

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL