Documentation
¶
Index ¶
- func GenCurl(context *table.QueryContext) (table.TableRows, error)
- func GenNetstat(context *table.QueryContext) (table.TableRows, error)
- func GenNetstatWithDiag(context *table.QueryContext) (table.TableRows, error)
- func GetLinuxKernelMajorVersion() (int, error)
- func GetLinuxKernelVersion() (string, error)
- func GetProcessInodeMapper(max int) (map[uint32]int, error)
- type Network
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenNetstat ¶
func GenNetstat(context *table.QueryContext) (table.TableRows, error)
func GenNetstatWithDiag ¶
func GenNetstatWithDiag(context *table.QueryContext) (table.TableRows, error)
func GetLinuxKernelMajorVersion ¶
GetLinuxKernelMajorVersion 获取linux内核版本主版本号
func GetLinuxKernelVersion ¶
GetLinuxKernelVersion 获取linux内核版本
Types ¶
type Network ¶
type Network struct {
Proto string `json:"proto"`
LocalIP string `json:"localIP"`
LocalPort string `json:"localPort"`
RemoteIP string `json:"remoteIP"`
RemotePort string `json:"remotePort"`
Status string `json:"status"`
Pid int32 `json:"pid"`
Family uint8 `json:"family"`
Inode uint32 `json:"inode"`
}
func GetNetworkInfoWithInetDiagReq ¶
GetNetworkInfoWithInetDiagReq 基于InetDiagReq的获取网络信息 在linux内核2.x.x可用, UDP协议数据需要通过解析/proc/net/udp来实现
Click to show internal directories.
Click to hide internal directories.