procsock

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 (
	TCPSockInuse    = "inuse"
	TCPSockOrphan   = "orphan"
	TCPSockTimewait = "tw"
	TCPSockeAlloc   = "alloc"
	TCPSockeMem     = "mem"
)

Variables

Functions

func ReadFileNoStat

func ReadFileNoStat(filename string) ([]byte, error)

Types

type ProcSock

type ProcSock struct {
}

func (*ProcSock) CollectOnce added in v1.0.0

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

func (*ProcSock) Start

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

func (*ProcSock) Stop added in v1.0.0

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

type ValueParser

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

func NewValueParser

func NewValueParser(v string) *ValueParser

NewValueParser creates a ValueParser using the input string.

func (*ValueParser) Err

func (vp *ValueParser) Err() error

Err returns the last error, if any, encountered by the ValueParser.

func (*ValueParser) Int

func (vp *ValueParser) Int() int

Int interprets the underlying value as an int and returns that value.

func (*ValueParser) PInt64

func (vp *ValueParser) PInt64() *int64

PInt64 interprets the underlying value as an int64 and returns a pointer to that value.

func (*ValueParser) PUInt64

func (vp *ValueParser) PUInt64() *uint64

PUInt64 interprets the underlying value as an uint64 and returns a pointer to that value.

Jump to

Keyboard shortcuts

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