beacon

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

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