ioperformance

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRecvSize

func AddRecvSize(size int)

func AddSendSize

func AddSendSize(size int)

func Init

func Init() *iOPerformance

Types

type IoData

type IoData struct {
	Send    string    `json:"send"`
	Recv    string    `json:"recv"`
	SendNum int       `json:"send_num"`
	RecvNum int       `json:"recv_num"`
	Time    time.Time `json:"time"`
	// contains filtered or unexported fields
}

type IoDataInfo

type IoDataInfo struct {
	DataSize     []IoData `json:"data_size"`
	AvgSend      string   `json:"avg_send"`
	TotalSendNum int      `json:"total_send_num"`
	AvgRecv      string   `json:"avg_recv"`
	TotalRecvNum int      `json:"total_receiv_num"`
}

func GetNetPerformance

func GetNetPerformance() *IoDataInfo

Jump to

Keyboard shortcuts

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