netstat

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetStat

type NetStat struct {
	// contains filtered or unexported fields
}

func NewNetStat

func NewNetStat() *NetStat

func (*NetStat) AddRecvStat

func (this *NetStat) AddRecvStat(msgLen int, msgCount int)

func (*NetStat) AddSendStat

func (this *NetStat) AddSendStat(msgLen int, msgCount int)

func (*NetStat) GetCurrent

func (this *NetStat) GetCurrent() *StatData

func (*NetStat) GetMax

func (this *NetStat) GetMax() *StatData

func (*NetStat) GetTotal

func (this *NetStat) GetTotal() *StatData

func (*NetStat) SetRecvChanItemCount

func (this *NetStat) SetRecvChanItemCount(chanItemCount int)

func (*NetStat) SetSendChanItemCount

func (this *NetStat) SetSendChanItemCount(chanItemCount int)

func (*NetStat) Start

func (this *NetStat) Start()

func (*NetStat) Stop

func (this *NetStat) Stop()

type StatData

type StatData struct {
	// contains filtered or unexported fields
}

func (*StatData) GetBytesRecv

func (this *StatData) GetBytesRecv() int

func (*StatData) GetBytesSend

func (this *StatData) GetBytesSend() int

func (*StatData) GetMessagesRecv

func (this *StatData) GetMessagesRecv() int

func (*StatData) GetMessagesSend

func (this *StatData) GetMessagesSend() int

func (*StatData) GetRecvChanItemCount

func (this *StatData) GetRecvChanItemCount() int

func (*StatData) GetSendChanItemCount

func (this *StatData) GetSendChanItemCount() int

Jump to

Keyboard shortcuts

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