Directories ¶
Path | Synopsis |
---|---|
github.com
|
|
awslabs/aws-sdk-go/aws
Package aws provides core functionality for making requests to AWS services.
|
Package aws provides core functionality for making requests to AWS services. |
awslabs/aws-sdk-go/aws/credentials
Package credentials provides credential retrieval and management The Credentials is the primary method of getting access to and managing credentials Values.
|
Package credentials provides credential retrieval and management The Credentials is the primary method of getting access to and managing credentials Values. |
awslabs/aws-sdk-go/service/cloudwatch
Package cloudwatch provides a client for Amazon CloudWatch.
|
Package cloudwatch provides a client for Amazon CloudWatch. |
guillermo/go.procmeminfo
Package procmeminfo provides an interface for /proc/meminfo import "github.com/guillermo/go.procmeminfo" meminfo := &procmeminfo.MemInfo{} meminfo.Update() Once the info was updated you can access like a normal map[string]float64 v := (*meminfo)["MemTotal"] // 1809379328 (1766972 * 1024) It also implement some handy methods, like: meminfo.Total() // (*meminfo)["MemTotal"] meminfo.Free() // MemFree + Buffers + Cached meminfo.Used() // Total - Free Return all the values in units, so while you get this from cat /proc/meminfo MemTotal: 1766972 kB MemFree: 115752 kB Buffers: 3172 kB Cached: 182552 kB SwapCached: 83572 kB Active: 1055284 kB Inactive: 382872 kB Active(anon): 932712 kB Inactive(anon): 329508 kB Active(file): 122572 kB Inactive(file): 53364 kB Unevictable: 10640 kB Mlocked: 10640 kB SwapTotal: 1808668 kB SwapFree: 1205672 kB Dirty: 100 kB Writeback: 0 kB AnonPages: 1214740 kB Mapped: 115636 kB Shmem: 4840 kB Slab: 77412 kB SReclaimable: 34344 kB SUnreclaim: 43068 kB KernelStack: 4328 kB PageTables: 39428 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 2692152 kB Committed_AS: 5448372 kB VmallocTotal: 34359738367 kB VmallocUsed: 106636 kB VmallocChunk: 34359618556 kB HardwareCorrupted: 0 kB AnonHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 216236 kB DirectMap2M: 1593344 kB All the kB values are multiply by 1024 This is the info extracted from the man page of proc: /proc/meminfo This file reports statistics about memory usage on the system.
|
Package procmeminfo provides an interface for /proc/meminfo import "github.com/guillermo/go.procmeminfo" meminfo := &procmeminfo.MemInfo{} meminfo.Update() Once the info was updated you can access like a normal map[string]float64 v := (*meminfo)["MemTotal"] // 1809379328 (1766972 * 1024) It also implement some handy methods, like: meminfo.Total() // (*meminfo)["MemTotal"] meminfo.Free() // MemFree + Buffers + Cached meminfo.Used() // Total - Free Return all the values in units, so while you get this from cat /proc/meminfo MemTotal: 1766972 kB MemFree: 115752 kB Buffers: 3172 kB Cached: 182552 kB SwapCached: 83572 kB Active: 1055284 kB Inactive: 382872 kB Active(anon): 932712 kB Inactive(anon): 329508 kB Active(file): 122572 kB Inactive(file): 53364 kB Unevictable: 10640 kB Mlocked: 10640 kB SwapTotal: 1808668 kB SwapFree: 1205672 kB Dirty: 100 kB Writeback: 0 kB AnonPages: 1214740 kB Mapped: 115636 kB Shmem: 4840 kB Slab: 77412 kB SReclaimable: 34344 kB SUnreclaim: 43068 kB KernelStack: 4328 kB PageTables: 39428 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 2692152 kB Committed_AS: 5448372 kB VmallocTotal: 34359738367 kB VmallocUsed: 106636 kB VmallocChunk: 34359618556 kB HardwareCorrupted: 0 kB AnonHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 216236 kB DirectMap2M: 1593344 kB All the kB values are multiply by 1024 This is the info extracted from the man page of proc: /proc/meminfo This file reports statistics about memory usage on the system. |
vaughan0/go-ini
Package ini provides functions for parsing INI configuration files.
|
Package ini provides functions for parsing INI configuration files. |
Click to show internal directories.
Click to hide internal directories.