lsof

package
v0.0.0-...-dd64253 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionDetails

type ConnectionDetails struct {
	SocketID       SocketID
	LocalAddrIP    net.IP
	LocalAddrPort  string
	RemoteAddrIP   net.IP
	RemoteAddrPort string
}

func MonitorUserConnections

func MonitorUserConnections() ([]*ConnectionDetails, error)

type Process

type Process struct {
	Pid     int
	Name    string
	Sockets map[string]bool
}

func GetUserProcessList

func GetUserProcessList() ([]*Process, error)

type SocketID

type SocketID = string

func ListOpenSockets

func ListOpenSockets(p *Process) ([]SocketID, error)

Jump to

Keyboard shortcuts

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