visigo: github.com/matoous/visigo Index | Files | Directories

package visigo

import "github.com/matoous/visigo"

Index

Package Files

visigo.go

Variables

var ErrCount = errors.New("count not found or error in HyperLogLog")

ErrCount - error returned when you try to get count but didn't register middleware

func Counter Uses

func Counter(next http.Handler) http.Handler

Counter - registers middleware for visits counting

func TotalVisits Uses

func TotalVisits() (uint64, error)

TotalVisits gets total visits to all sites

func Visits Uses

func Visits(r *http.Request) (uint64, error)

Visits - get visits for given URL

Directories

PathSynopsis
examples

Package visigo imports 4 packages (graph) and is imported by 1 packages. Updated 2019-09-25. Refresh now. Tools for package owners.