stats

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PurgeInterval = time.Minute * 5

PurgeInterval is the interval at which users are purged from the current list

Functions

func HandleUserCount

func HandleUserCount(context router.Context) error

HandleUserCount serves a get request at /stats/users/count

func RegisterHit

func RegisterHit(context router.Context)

RegisterHit registers a hit and ups user count if required

func UserCount

func UserCount() int

UserCount returns a count of users in the last 5 minutes

Types

This section is empty.

Jump to

Keyboard shortcuts

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