pageviews

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

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

Go to latest
Published: Dec 21, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(opts ...Option) mux.MiddlewareFunc

Middleware produces an HTTP middleware function that reports page views.

Types

type Option

type Option func(*opt)

Option provides a way to configure elements of the Middleware.

func Exclusions

func Exclusions(exclusions ...excludes.Exclusion) Option

Exclusions appends the provided rules to the excludes list. Any path that matches an exclusion will not be measured.

Jump to

Keyboard shortcuts

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