stats

package
Version: v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL