data

package
v1.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	ID       bson.ObjectId `bson:"_id,omitempty"`
	Ts       int64         `bson:"ts,omitempty"`
	UID      string        `bson:"uid"`
	Src      string        `bson:"id_origin_h,omitempty"`
	Spt      int           `bson:"id_origin_p,omitempty"`
	Dst      string        `bson:"id_resp_h,omitempty"`
	Dpt      int           `bson:"id_resp_p,omitempty"`
	Dur      float64       `bson:"duration,omitempty"`
	Proto    string        `bson:"proto,omitempty"`
	LocalSrc bool          `bson:"local_orig,omitempty"`
	LocalDst bool          `bson:"local_resp,omitempty"`
}

Conn provides structure for a subset of the fields in the parser.Conn data structure. If fields are needed that are not in this Conn structure use parser.Conn instead.

type DNS added in v1.0.0

type DNS struct {
	ID      bson.ObjectId `bson:"_id,omitempty"`
	Ts      int64         `bson:"ts"`
	UID     string        `bson:"uid"`
	Src     string        `bson:"id_origin_h"`
	Spt     int           `bson:"id_origin_p"`
	Dst     string        `bson:"id_resp_h"`
	Dpt     int           `bson:"id_resp_p"`
	Proto   string        `bson:"proto"`
	QType   string        `bson:"qtype_name"`
	Query   string        `bson:"query"`
	Answers []string      `bson:"answers"`
}

DNS provides structure for a subset of the fields in the parser.DNS data structure. If fields are needed that are not in this Conn structure use parser.DNS instead.

Jump to

Keyboard shortcuts

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