structure

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 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 Connection

type Connection struct {
	ID    bson.ObjectId `bson:"_id,omitempty" json:"_id,omitempty"`
	Con   string        `bson:"con" json:"con"`
	Host  string        `bson:"host" json:"host"`
	Dst   string        `bson:"dst" json:"dst"`
	Mods  string        `bson:"mods" json:"mods"`
	MHits int           `bson:"mHits" json:"mHits"`
	HitCt int           `bson:"hitCt" json:"hitCt"`
	ModCt int           `bson:"modCt" json:"modCt"`
}

A complete admin object mirroring database record for all Connections

type Host

type Host struct {
	ID    bson.ObjectId `bson:"_id,omitempty"`
	Ip    string        `bson:"ip"`
	Local bool          `bson:"local"`
}

type Http

type Http struct {
	Src string `bson:"id_origin_h"`
}

type UniqueConnection

type UniqueConnection struct {
	ID              bson.ObjectId `bson:"_id,omitempty"`
	ConnectionCount int           `bson:"connection_count"`
	Src             string        `bson:"src"`
	Dst             string        `bson:"dst"`
	LocalSrc        bool          `bson:"local_src"`
	LocalDst        bool          `bson:"local_dst"`
	TotalBytes      int           `bson:"total_bytes"`
	AverageBytes    float32       `bson:"average_bytes"`
	TotalDuration   float32       `bson:"total_duration"`
}

Jump to

Keyboard shortcuts

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