Documentation ¶
Index ¶
- type SystemInfo
- func (s *SystemInfo) Family() (string, error)
- func (s *SystemInfo) KernelVersion() (string, error)
- func (s *SystemInfo) MemFree() (uint64, error)
- func (s *SystemInfo) MemTotal() (uint64, error)
- func (s *SystemInfo) MemUsed() (uint64, error)
- func (s *SystemInfo) OSVersion() (string, error)
- func (s *SystemInfo) Platform() (string, error)
- func (s *SystemInfo) Uptime() (uptime uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemInfo ¶
type SystemInfo struct {
// contains filtered or unexported fields
}
SystemInfo is an implementation of pilosa.SystemInfo that uses gopsutil to collect information about the host OS.
func NewSystemInfo ¶
func NewSystemInfo() *SystemInfo
NewSystemInfo is a constructor for the gopsutil implementation of SystemInfo.
func (*SystemInfo) Family ¶
func (s *SystemInfo) Family() (string, error)
Family returns the system family.
func (*SystemInfo) KernelVersion ¶
func (s *SystemInfo) KernelVersion() (string, error)
KernelVersion returns the kernel version as a string.
func (*SystemInfo) MemFree ¶
func (s *SystemInfo) MemFree() (uint64, error)
MemFree returns the amount of free memory in bytes.
func (*SystemInfo) MemTotal ¶
func (s *SystemInfo) MemTotal() (uint64, error)
MemTotal returns the amount of total memory in bytes.
func (*SystemInfo) MemUsed ¶
func (s *SystemInfo) MemUsed() (uint64, error)
MemUsed returns the amount of used memory in bytes.
func (*SystemInfo) OSVersion ¶
func (s *SystemInfo) OSVersion() (string, error)
OSVersion returns the OS Version.
func (*SystemInfo) Platform ¶
func (s *SystemInfo) Platform() (string, error)
Platform returns the system platform.
func (*SystemInfo) Uptime ¶
func (s *SystemInfo) Uptime() (uptime uint64, err error)
Uptime returns the system uptime in seconds.
Click to show internal directories.
Click to hide internal directories.