Documentation
¶
Index ¶
Constants ¶
View Source
const ( TCPSockInuse = "inuse" TCPSockOrphan = "orphan" TCPSockTimewait = "tw" TCPSockeAlloc = "alloc" TCPSockeMem = "mem" )
Variables ¶
View Source
var (
TCPSockStatMetrics = []string{TCPSockInuse, TCPSockOrphan, TCPSockTimewait, TCPSockeAlloc, TCPSockeMem}
)
Functions ¶
func ReadFileNoStat ¶
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.