Versions in this module Expand all Collapse all v1 v1.1.0 Jun 22, 2016 v1.1.0-beta3 Jun 10, 2016 v1.1.0-beta2 Jun 3, 2016 v1.1.0-beta1 May 20, 2016 v1.0.1 Mar 31, 2016 v1.0.0 Mar 7, 2016 v1.0.0-beta1 Feb 23, 2016 v0 v0.1.0 Feb 3, 2016 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)