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"`
	Browsers       map[string]int `json:"browsers"`
	BrowserVersion map[string]int `json:"browserversion"`
	OS             map[string]int `json:"os"`
	Device         map[string]int `json:"device"`
	DeviceType     map[string]int `json:"devicetype"`
	OSVersion      map[string]int `json:"osversion"`
	// contains filtered or unexported fields
}

func NewStats

func NewStats() *Stats

func (*Stats) Handle

func (s *Stats) Handle(c echo.Context) error

Handle is the endpoint to get stats.

func (*Stats) Process

func (s *Stats) Process(next echo.HandlerFunc) echo.HandlerFunc

Process is the middleware function.

Jump to

Keyboard shortcuts

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