Documentation
¶
Overview ¶
Package topology provides network topology discovery from packet captures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds network topology from observed traffic.
func (*Builder) AddTraffic ¶
AddTraffic adds observed traffic to the topology.
type Link ¶
type Link struct {
Source string `json:"source"`
Target string `json:"target"`
Protocol string `json:"protocol"`
Packets int `json:"packets"`
Bytes int64 `json:"bytes"`
}
Link represents a connection between two nodes.
type Node ¶
type Node struct {
ID string `json:"id"`
Type string `json:"type"` // "host", "router", "switch", "server"
MAC string `json:"mac,omitempty"`
IP string `json:"ip,omitempty"`
Ports []int `json:"ports,omitempty"`
Services []string `json:"services,omitempty"`
Meta map[string]string `json:"meta,omitempty"`
}
Node represents a network node.
Click to show internal directories.
Click to hide internal directories.