statistics

package
v0.0.0-...-3a230e9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Statistics

type Statistics struct {
	// contains filtered or unexported fields
}

Statistics is the worker to persist the request statistics

func NewStatistics

func NewStatistics(loggingPeriod time.Duration) *Statistics

NewStatistics creates a new statistics structure and launches its worker routine

func (*Statistics) PlusOne

func (sw *Statistics) PlusOne()

PlusOne is used to add one to the counter

Jump to

Keyboard shortcuts

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