Source File
net_sockstat.go
Belonging Package
github.com/prometheus/procfs
package procfs
import (
)
func ( FS) () (*NetSockstat, error) {
return readSockstat(.proc.Path("net", "sockstat"))
}
func ( FS) () (*NetSockstat, error) {
return readSockstat(.proc.Path("net", "sockstat6"))
}
, := util.ReadFileNoStat()
func ( io.Reader) (*NetSockstat, error) {
var NetSockstat
:= bufio.NewScanner()
:= strings.TrimSuffix([0], ":")
switch {
:= ["used"]
.Used = &
func ( map[string]int) NetSockstatProtocol {
var NetSockstatProtocol
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |