Documentation
¶
Index ¶
- func ItoDotPort(port uint32) string
- func StoDotPort(port string) string
- type Config
- type DotRender
- type PSTopo
- type PortSet
- type Process
- type Render
- type Snapshot
- func (s *Snapshot) Copy(snapshot *Snapshot, pid int32)
- func (s *Snapshot) CopyLite(snapshot *Snapshot, pid int32)
- func (s *Snapshot) Dump() []byte
- func (s *Snapshot) DumpFile(filepath string)
- func (s *Snapshot) GetConnection(port uint32) net.ConnectionStat
- func (s *Snapshot) Print() []byte
- func (s *Snapshot) Processes() []*Process
- type TopoEdge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ItoDotPort ¶
func StoDotPort ¶
Types ¶
type Config ¶
type PSTopo ¶
type PortSet ¶
func NewPortSet ¶
func NewPortSet() *PortSet
func (*PortSet) MarshalJSON ¶
func (*PortSet) UnmarshalJSON ¶
type Render ¶
func NewDotRender ¶
type Snapshot ¶
type Snapshot struct { PidProcess map[int32]*Process `yaml:"process"` PidListenPort map[int32]*PortSet `yaml:"pid_listen_port"` PidPort map[int32]*PortSet `yaml:"pid_port"` ListenPortConnections map[uint32][]net.ConnectionStat `yaml:"listen_port_connection"` ListenPortPid map[uint32]int32 `yaml:"listen_port_pid"` PortConnection map[uint32]net.ConnectionStat `yaml:"port_connection"` PortPid map[uint32]int32 `yaml:"port_pid"` }
func NewSnapshot ¶
func NewSnapshot() *Snapshot
func TakeSnapshot ¶
func (*Snapshot) GetConnection ¶
func (s *Snapshot) GetConnection(port uint32) net.ConnectionStat
Click to show internal directories.
Click to hide internal directories.