stats

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: MIT Imports: 7 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(w http.ResponseWriter, r *http.Request) error

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

func RegisterHit

func RegisterHit(r *http.Request)

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