Versions in this module Expand all Collapse all v1 v1.0.2 Sep 7, 2016 v1.0.1 Sep 7, 2016 Changes in this version + type CPUInfo struct + CPU []cpu.CPUInfoStat + PerCPUTimes []cpu.CPUTimesStat + PrevCPUTimes []cpu.CPUTimesStat + PrevTotalTimes []cpu.CPUTimesStat + TotalTimes []cpu.CPUTimesStat + type CPUPercentages struct + CPU string + Guest float64 + GuestNice float64 + IOWait float64 + IRQ float64 + Idle float64 + Nice float64 + SoftIRQ float64 + Steal float64 + Stolen float64 + System float64 + Total float64 + User float64 + type ClientConfig struct + CustomBufferSize int + Debug bool + Domain string + LogCPUInfo bool + LogGoMemory bool + LogHostInfo bool + LogMemory bool + LogPerCPUTimes bool + LogTotalCPUTimes bool + PollInterval int + Port int + type ClientStats struct + func NewClient(clientConfig *ClientConfig, serverConfig *ServerConfig) (*ClientStats, error) + func (c *ClientStats) Run() + func (c *ClientStats) Stop() + func (s *ClientStats) NewHTTPRequest(w http.ResponseWriter, r *http.Request) *HTTPRequest + type GoInfo struct + GoRoutines int + Memory GoMemory + Version string + type GoMemory struct + Alloc uint64 + HeapAlloc uint64 + HeapSys uint64 + LastGC uint64 + LastGCPauseDuration uint64 + NumGC uint32 + type HTTPRequest struct + Duration int64 + End time.Time + Error string + HasErrors bool + Headers http.Header + Method string + RequestContentLength int64 + ResponseContentLength int64 + Start time.Time + StatusCode int + URL string + func (r *HTTPRequest) Complete() + func (r *HTTPRequest) Failure(err string) + func (r *HTTPRequest) Writer() http.ResponseWriter + type LogResponseWritter struct + func (w *LogResponseWritter) Header() http.Header + func (w *LogResponseWritter) Size() int + func (w *LogResponseWritter) Status() int + func (w *LogResponseWritter) Write(data []byte) (int, error) + func (w *LogResponseWritter) WriteHeader(statusCode int) + type MemInfo struct + Memory *mem.VirtualMemoryStat + Swap *mem.SwapMemoryStat + type ServerConfig struct + CustomBufferSize int + Debug bool + Domain string + Port int + type ServerStats struct + func NewServer(config *ServerConfig) (*ServerStats, error) + func (s *ServerStats) Run() <-chan *Stats + type Stats struct + CPUInfo *CPUInfo + GoInfo *GoInfo + HTTPRequests []*HTTPRequest + HostInfo *host.HostInfoStat + MemInfo *MemInfo + func (s *Stats) CalculateCPUTimes() []CPUPercentages + func (s *Stats) CalculateTotalCPUTimes() []CPUPercentages + func (s *Stats) GetAllCPUInfo() + func (s *Stats) GetCPUInfo() + func (s *Stats) GetCPUTimes() + func (s *Stats) GetHostInfo() + func (s *Stats) GetMemoryInfo(logMemory, logGoMemory bool) + func (s *Stats) GetTotalCPUTimes()