uconn

package
v3.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LongConnAnalysisView

type LongConnAnalysisView struct {
	Src         string   `bson:"src"`
	Dst         string   `bson:"dst"`
	MaxDuration float64  `bson:"maxdur"`
	Tuples      []string `bson:"tuples"`
	TupleStr    string
}

LongConnAnalysisView (for reporting)

type Pair

type Pair struct {
	Src             string
	Dst             string
	ConnectionCount int64
	IsLocalSrc      bool
	IsLocalDst      bool
	TotalBytes      int64
	MaxDuration     float64
	TotalDuration   float64
	TsList          []int64
	OrigBytesList   []int64
	Tuples          []string
	// InvalidCerts    []string
	InvalidCertFlag bool
	UPPSFlag        bool
}

Pair ....

type Repository

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

Repository for uconn collection

func NewMongoRepository

func NewMongoRepository(res *resources.Resources) Repository

NewMongoRepository create new repository

Jump to

Keyboard shortcuts

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