stats

package
v0.0.0-...-0e8a65c Latest Latest
Warning

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

Go to latest
Published: May 20, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	Uptime         time.Time      `json:"uptime"`
	RequestCount   uint64         `json:"requestCount"`
	Statuses       map[string]int `json:"statuses"`
	Methods        map[string]int `json:"methods"`
	Paths          map[string]int `json:"paths"`
	Platform       map[string]int `json:"platforms"`
	OS             map[string]int `json:"os"`
	BrowserName    map[string]int `json:"browsername"`
	BrowserVersion map[string]int `json:"browserversion"`
	Mobiles        map[string]int `json:"mobiles"`
	Bots           map[string]int `json:"bots"`

	GoVersion        string    `json:"goversion"`
	GoOs             string    `json:"goos"`
	GoArch           string    `json:"goarch"`
	CpuNum           int       `json:"cpunum"`
	GoroutineNum     int       `json:"goroutinenum"`
	Gomaxprocs       int       `json:"gomaxprocs"`
	CgoCallNum       int64     `json:"cgocallnum"`
	MemoryAlloc      uint64    `json:"memoryalloc"`
	MemoryTotalAlloc uint64    `json:"memorytotalalloc"`
	MemorySys        uint64    `json:"memorysys"`
	MemoryLookups    uint64    `json:"memorylookups"`
	MemoryMallocs    uint64    `json:"memorymallocs"`
	MemoryFrees      uint64    `json:"memoryfrees"`
	StackInUse       uint64    `json:"memorystack"`
	HeapAlloc        uint64    `json:"heapalloc"`
	HeapSys          uint64    `json:"heapsys"`
	HeapIdle         uint64    `json:"heapidle"`
	HeapInuse        uint64    `json:"heapinuse"`
	HeapReleased     uint64    `json:"heapreleased"`
	HeapObjects      uint64    `json:"heapobjects"`
	GcNext           uint64    `json:"gcnext"`
	GcLast           uint64    `json:"gclast"`
	GcNum            uint32    `json:"gcnum"`
	GcPerSecond      float64   `json:"gcpersecond"`
	GcPausePerSecond float64   `json:"gcpausepersecond"`
	GcPause          []float64 `json:"gcpause"`
	// contains filtered or unexported fields
}

func New

func New() *Stats

func (*Stats) Handle

func (s *Stats) Handle(ctx *iris.Context)

func (*Stats) Serve

func (s *Stats) Serve(ctx *iris.Context)

Jump to

Keyboard shortcuts

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