Documentation ¶
Index ¶
Constants ¶
View Source
const (
// UnidentifiedProcessID is originally defined in the process pkg, but duplicated here because of import loops.
UnidentifiedProcessID = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindInfo ¶
BindInfo holds socket information returned by the system.
func (*BindInfo) GetUIDandInode ¶ added in v0.6.0
GetUIDandInode returns the UID and Inode.
type ConnectionInfo ¶
ConnectionInfo holds socket information returned by the system.
func (*ConnectionInfo) GetPID ¶ added in v0.4.12
func (i *ConnectionInfo) GetPID() int
GetPID returns the PID.
func (*ConnectionInfo) GetUID ¶ added in v0.4.12
func (i *ConnectionInfo) GetUID() int
GetUID returns the UID.
func (*ConnectionInfo) GetUIDandInode ¶ added in v0.6.0
func (i *ConnectionInfo) GetUIDandInode() (int, int)
GetUIDandInode returns the UID and Inode.
func (*ConnectionInfo) SetPID ¶ added in v0.4.12
func (i *ConnectionInfo) SetPID(pid int)
SetPID sets the PID to the given value.
Click to show internal directories.
Click to hide internal directories.