Documentation ¶
Index ¶
- type CpuResponse
- type MemoryResponse
- type NetResult
- type Stats
- func (s *Stats) Cpu(args int, res *CpuResponse) error
- func (s *Stats) DiskSpace(args *StatsArgs, res *StatsResponse) error
- func (s *Stats) Host(args int, res *host.InfoStat) error
- func (s *Stats) Load(args int, res *load.AvgStat) error
- func (s *Stats) Memory(args *MemoryResponse, res *MemoryResponse) error
- func (s *Stats) Net(args int, res *[]*NetResult) error
- func (self *Stats) RegisterRPC(server *rpc.Server)
- type StatsArgs
- type StatsResponse
- type StatsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpuResponse ¶
type MemoryResponse ¶
type MemoryResponse struct { Memory *mem.VirtualMemoryStat `json:"memory"` Swap *mem.SwapMemoryStat `json:"swap"` }
type Stats ¶
func (*Stats) Memory ¶
func (s *Stats) Memory(args *MemoryResponse, res *MemoryResponse) error
func (*Stats) RegisterRPC ¶
type StatsResponse ¶
type StatsResponse struct {
Results []StatsResult `json:"results"`
}
type StatsResult ¶
Click to show internal directories.
Click to hide internal directories.