Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisView ¶
type AnalysisView struct { Host string `bson:"host"` Connections int `bson:"conn_count"` UniqueConnections int `bson:"uconn_count"` TotalBytes int `bson:"total_bytes"` ConnectedHosts []string `bson:"ips,omitempty"` }
AnalysisView (for reporting)
type Repository ¶
type Repository interface { CreateIndexes() error // Upsert(hostname *parsetypes.Hostname) error Upsert(domainMap map[string][]string) }
Repository for hostnames collection
func NewMongoRepository ¶
func NewMongoRepository(res *resources.Resources) Repository
NewMongoRepository create new repository
Click to show internal directories.
Click to hide internal directories.