proctcpsummary

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "proctcpsummary"

	TCPEstablishedConn = "tcpestablishedconn"
	TCPTimewaitConn    = "tcptimewaitconn"
	TCPTXQueue         = "tcptxqueue"
	TCPRXQueue         = "tcprxqueue"
	TCPListenBacklog   = "tcplistenbacklog"

	// st mapping of tcp state
	/*TCPEstablished:1   TCP_SYN_SENT:2
	TCP_SYN_RECV:3      TCP_FIN_WAIT1:4
	TCP_FIN_WAIT2:5     TCPTimewait:6
	TCP_CLOSE:7         TCP_CLOSE_WAIT:8
	TCP_LAST_ACL:9      TCPListen:10
	TCP_CLOSING:11*/
	TCPEstablished = uint64(1)
	TCPTimewait    = uint64(6)
	TCPListen      = uint64(10)
)

Variables

Functions

This section is empty.

Types

type NetIPSocket

type NetIPSocket []*netIPSocketLine

type NetIPSocketSummary

type NetIPSocketSummary struct {
	TxQueueLength uint64
	RxQueueLength uint64
	UsedSockets   uint64
}

type NetTCP

type NetTCP []*netIPSocketLine

type NetTCPSummary

type NetTCPSummary NetIPSocketSummary

type ProcTCP

type ProcTCP struct {
}

func (*ProcTCP) CollectOnce added in v1.0.0

func (s *ProcTCP) CollectOnce() (map[string]map[uint32]uint64, error)

func (*ProcTCP) Start

func (s *ProcTCP) Start(_ context.Context) error

func (*ProcTCP) Stop added in v1.0.0

func (s *ProcTCP) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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