Versions in this module Expand all Collapse all v1 v1.1.0-alpha Oct 31, 2017 v1.0.9 Apr 20, 2018 v1.0.8 Feb 11, 2018 v1.0.7 Jan 19, 2018 v1.0.6 Jan 8, 2018 v1.0.5 Dec 26, 2017 v1.0.4 Dec 11, 2017 v1.0.3 Nov 25, 2017 v1.0.2 Nov 13, 2017 v1.0.1 Oct 31, 2017 v1.0.0 Oct 16, 2017 Changes in this version + const DefaultMountPoint + type FS string + func NewFS(mountPoint string) (FS, error) + func (fs FS) AllProcs() (Procs, error) + func (fs FS) NewIPVSBackendStatus() ([]IPVSBackendStatus, error) + func (fs FS) NewIPVSStats() (IPVSStats, error) + func (fs FS) NewProc(pid int) (Proc, error) + func (fs FS) NewStat() (Stat, error) + func (fs FS) ParseMDStat() (mdstates []MDStat, err error) + func (fs FS) Path(p ...string) string + func (fs FS) Self() (Proc, error) + type IPVSBackendStatus struct + ActiveConn uint64 + InactConn uint64 + LocalAddress net.IP + LocalPort uint16 + Proto string + RemoteAddress net.IP + RemotePort uint16 + Weight uint64 + func NewIPVSBackendStatus() ([]IPVSBackendStatus, error) + type IPVSStats struct + Connections uint64 + IncomingBytes uint64 + IncomingPackets uint64 + OutgoingBytes uint64 + OutgoingPackets uint64 + func NewIPVSStats() (IPVSStats, error) + type MDStat struct + ActivityState string + BlocksSynced int64 + BlocksTotal int64 + DisksActive int64 + DisksTotal int64 + Name string + type Proc struct + PID int + func NewProc(pid int) (Proc, error) + func Self() (Proc, error) + func (p Proc) CmdLine() ([]string, error) + func (p Proc) Comm() (string, error) + func (p Proc) Executable() (string, error) + func (p Proc) FileDescriptorTargets() ([]string, error) + func (p Proc) FileDescriptors() ([]uintptr, error) + func (p Proc) FileDescriptorsLen() (int, error) + func (p Proc) NewIO() (ProcIO, error) + func (p Proc) NewLimits() (ProcLimits, error) + func (p Proc) NewStat() (ProcStat, error) + type ProcIO struct + CancelledWriteBytes int64 + RChar uint64 + ReadBytes uint64 + SyscR uint64 + SyscW uint64 + WChar uint64 + WriteBytes uint64 + type ProcLimits struct + AddressSpace int + CPUTime int + CoreFileSize int + DataSize int + FileLocks int + FileSize int + LockedMemory int + MsqqueueSize int + NicePriority int + OpenFiles int + PendingSignals int + Processes int + RealtimePriority int + RealtimeTimeout int + ResidentSet int + StackSize int + type ProcStat struct + CMajFlt uint + CMinFlt uint + CSTime uint + CUTime uint + Comm string + Flags uint + MajFlt uint + MinFlt uint + Nice int + NumThreads int + PGRP int + PID int + PPID int + Priority int + RSS int + STime uint + Session int + Starttime uint64 + State string + TPGID int + TTY int + UTime uint + VSize int + func (s ProcStat) CPUTime() float64 + func (s ProcStat) ResidentMemory() int + func (s ProcStat) StartTime() (float64, error) + func (s ProcStat) VirtualMemory() int + type Procs []Proc + func AllProcs() (Procs, error) + func (p Procs) Len() int + func (p Procs) Less(i, j int) bool + func (p Procs) Swap(i, j int) + type Stat struct + BootTime int64 + func NewStat() (Stat, error)