procfs

package
v0.0.0-...-c12f8f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProcCpuInfo

func NewProcCpuInfo() readers.IReader

NewProcCpuInfo is ProcCpuInfo constructor.

func NewProcDiskStats

func NewProcDiskStats() readers.IReader

NewProcDiskStats is ProcDiskStats constructor.

func NewProcLoadAvg

func NewProcLoadAvg() readers.IReader

NewProcLoadAvg is ProcLoadAvg constructor.

func NewProcMemInfo

func NewProcMemInfo() readers.IReader

NewProcMemInfo is ProcMemInfo constructor.

func NewProcMounts

func NewProcMounts() readers.IReader

NewProcMounts is ProcMounts constructor.

func NewProcNetDev

func NewProcNetDev() readers.IReader

NewProcNetDev is ProcNetDev constructor.

func NewProcNetDevPid

func NewProcNetDevPid() readers.IReader

NewProcNetDevPid is ProcNetDevPid constructor.

func NewProcStat

func NewProcStat() readers.IReader

NewProcStat is ProcStat constructor.

func NewProcUptime

func NewProcUptime() readers.IReader

NewProcUptime is ProcUptime constructor.

func NewProcVmStat

func NewProcVmStat() readers.IReader

NewProcVmStat is ProcVmStat constructor.

Types

type ProcCpuInfo

type ProcCpuInfo struct {
	Data map[string][]linuxproc.Processor
}

ProcCpuInfo is a reader that scrapes /proc/cpuinfo data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/cpuinfo.go

func (*ProcCpuInfo) Run

func (p *ProcCpuInfo) Run() error

func (*ProcCpuInfo) ToJson

func (p *ProcCpuInfo) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcDiskStats

type ProcDiskStats struct {
	Data map[string]linuxproc.DiskStat
}

ProcDiskStats is a reader that scrapes /proc/diskstats data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/diskstat.go

func (*ProcDiskStats) Run

func (p *ProcDiskStats) Run() error

func (*ProcDiskStats) ToJson

func (p *ProcDiskStats) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcLoadAvg

type ProcLoadAvg struct {
	Data map[string]float64
}

ProcLoadAvg is a reader that scrapes /proc/diskstats data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/loadavg.go

func (*ProcLoadAvg) Run

func (p *ProcLoadAvg) Run() error

func (*ProcLoadAvg) ToJson

func (p *ProcLoadAvg) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcMemInfo

type ProcMemInfo struct {
	Data map[string]uint64
}

ProcMemInfo is a reader that scrapes /proc/diskstats data. Data source: https://github.com/guillermo/go.procmeminfo

func (*ProcMemInfo) Run

func (p *ProcMemInfo) Run() error

func (*ProcMemInfo) ToJson

func (p *ProcMemInfo) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcMounts

type ProcMounts struct {
	Data map[string][]linuxproc.Mount
}

ProcMounts is a reader that scrapes /proc/mounts data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/mounts.go

func (*ProcMounts) Run

func (p *ProcMounts) Run() error

func (*ProcMounts) ToJson

func (p *ProcMounts) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcNetDev

type ProcNetDev struct {
	Data map[string]linuxproc.NetworkStat
}

ProcNetDev is a reader that scrapes /proc/net/dev data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/network_stat.go

func (*ProcNetDev) Run

func (p *ProcNetDev) Run() error

func (*ProcNetDev) ToJson

func (p *ProcNetDev) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcNetDevPid

type ProcNetDevPid struct {
	Data map[string]map[string]linuxproc.NetworkStat
}

ProcNetDevPid is a reader that scrapes /proc/$pid/net/dev data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/network_stat.go

func (*ProcNetDevPid) Run

func (p *ProcNetDevPid) Run() error

func (*ProcNetDevPid) ToJson

func (p *ProcNetDevPid) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcStat

type ProcStat struct {
	Data *linuxproc.Stat
}

ProcStat is a reader that scrapes /proc/stat data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/stat.go

func (*ProcStat) Run

func (p *ProcStat) Run() error

func (*ProcStat) ToJson

func (p *ProcStat) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcUptime

type ProcUptime struct {
	Data *linuxproc.Uptime
}

ProcUptime is a reader that scrapes /proc/uptime data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/uptime.go

func (*ProcUptime) Run

func (p *ProcUptime) Run() error

func (*ProcUptime) ToJson

func (p *ProcUptime) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

type ProcVmStat

type ProcVmStat struct {
	Data *linuxproc.VMStat
}

ProcVmStat is a reader that scrapes /proc/vmstat data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/vmstat.go

func (*ProcVmStat) Run

func (p *ProcVmStat) Run() error

func (*ProcVmStat) ToJson

func (p *ProcVmStat) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

Jump to

Keyboard shortcuts

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