beacon

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: GPL-3.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisView

type AnalysisView struct {
	Src         string  `bson:"src"`
	Dst         string  `bson:"dst"`
	Connections int64   `bson:"connection_count"`
	AvgBytes    float64 `bson:"avg_bytes"`
	Ts          TSData  `bson:"ts"`
	Ds          DSData  `bson:"ds"`
	Score       float64 `bson:"score"`
}

AnalysisView (for reporting)

type DSData

type DSData struct {
	Skew       float64 `bson:"skew"`
	Dispersion int64   `bson:"dispersion"`
	Range      int64   `bson:"range"`
	Mode       int64   `bson:"mode"`
	ModeCount  int64   `bson:"mode_count"`
}

DSData ...

type Repository

type Repository interface {
	CreateIndexes() error
	Upsert(uconnMap map[string]*uconn.Pair)
}

Repository for host collection

func NewMongoRepository

func NewMongoRepository(res *resources.Resources) Repository

NewMongoRepository create new repository

type StrobeAnalysisView

type StrobeAnalysisView struct {
	Src             string `bson:"src"`
	Dst             string `bson:"dst"`
	ConnectionCount int64  `bson:"conn_count"`
}

StrobeAnalysisView (for reporting)

type TSData

type TSData struct {
	Range      int64   `bson:"range"`
	Mode       int64   `bson:"mode"`
	ModeCount  int64   `bson:"mode_count"`
	Skew       float64 `bson:"skew"`
	Dispersion int64   `bson:"dispersion"`
	Duration   float64 `bson:"duration"`
}

TSData ...

Jump to

Keyboard shortcuts

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