stats

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ActiveAppsTrimInterval  = 1 * time.Minute
	ActiveAppsEntryLifetime = 30 * time.Minute
)
View Source
const (
	TopAppsTrimInterval  = 10 * time.Second
	TopAppsEntryLifetime = 60 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveApps

type ActiveApps struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewActiveApps

func NewActiveApps() *ActiveApps

func (*ActiveApps) ActiveSince

func (x *ActiveApps) ActiveSince(y time.Time) []string

func (*ActiveApps) Mark

func (x *ActiveApps) Mark(ApplicationId string, z time.Time)

func (*ActiveApps) Trim

func (x *ActiveApps) Trim(y time.Time)

type TopApps

type TopApps struct {
	sync.Mutex

	*time.Ticker
	// contains filtered or unexported fields
}

func NewTopApps

func NewTopApps() *TopApps

func (*TopApps) Mark

func (x *TopApps) Mark(ApplicationId string, z time.Time)

func (*TopApps) TopSince

func (x *TopApps) TopSince(y time.Time, n int) []TopAppsTopEntry

func (*TopApps) Trim

func (x *TopApps) Trim(y time.Time)

type TopAppsTopEntry

type TopAppsTopEntry struct {
	ApplicationId string
	Requests      int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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